Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyup98 committed Aug 22, 2021
1 parent 282ed6b commit f5e1df4
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Percolation/Percolation.java
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,6 @@ public void open(int row, int col) {
}
}

/*
public void connecting(int row, int col) {
if (row > size || col > size || row <= 0 || col <= 0) {
throw new java.lang.IndexOutOfBoundsException();
}
}
*/

// is the site (row, col) open?
public boolean isOpen(int row, int col) {
if (row > size || col > size || row <= 0 || col <= 0) {
Expand Down Expand Up @@ -191,6 +183,7 @@ public boolean percolates() {
return false;
}

//for test
/*
public void print() {
StringBuilder builder = new StringBuilder();
Expand Down

0 comments on commit f5e1df4

Please sign in to comment.