We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28bb654 commit 084d4a1Copy full SHA for 084d4a1
src/main/java/com/team/hashcode/pizza/Pizza.java
@@ -26,12 +26,12 @@ public void cutPizza(){
26
int r = 0;
27
int c = 0;
28
boolean isWasAnotherIngredient = false;
29
- for(; c < columns; ) {
+ for(; c < columns; c++) {
30
31
final Slice slice = new Slice(maxCellsPerSlice);
32
char searchIngredient = matrix[r][c] == 'M' ? 'T' : 'M';
33
34
- for(; r < row;){
+ for(; r < row; r++){
35
36
if(sliceSize < maxCellsPerSlice) {
37
if(searchIngredient == matrix[r][c]){
@@ -42,7 +42,6 @@ public void cutPizza(){
42
slice.clear();
43
}
44
sliceSize++;
45
- r++;
46
}else{
47
r = 0;
48
sliceSize = 0;
@@ -51,8 +50,6 @@ public void cutPizza(){
51
50
52
53
54
- c++;
55
-
56
57
58
0 commit comments