Skip to content

Commit 1ba72d2

Browse files
committed
2017-09-30
1 parent 0281b37 commit 1ba72d2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

4/dividconquer/Main.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ private static void quadTree(int row, int col, int count) throws IOException{
3131
return;
3232
char check = mTree[row][col];
3333

34-
boolean f = true;
3534
for(int i = row;i<=row + mN / count - 1;i++){
3635
for(int j = col;j<=col + mN / count - 1;j++){
3736
if(check != mTree[i][j] && f){
@@ -42,13 +41,10 @@ private static void quadTree(int row, int col, int count) throws IOException{
4241
quadTree(row + mN / count, col, count); // LB
4342
quadTree(row + mN / count, col + mN / count, count); // RB
4443
bw.write(")");
45-
f = false;
4644
return;
4745
}
4846
}
4947
}
50-
if(f){
51-
bw.write(check);
52-
}
48+
bw.write(check);
5349
}
5450
}

0 commit comments

Comments
 (0)