Skip to content

Commit

Permalink
Change badBlockIndex to j+1
Browse files Browse the repository at this point in the history
  • Loading branch information
Natalie Barillaro authored and Natalie Barillaro committed Apr 2, 2014
1 parent 3bada4f commit a5ea09a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions wk4/baylor-4238/solution.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,9 @@ int main(int argc, char **argv) {
* Also make sure we haven't set badBlockIndex yet
*/
if (area == 6 && badBlockIndex == 0) {
badBlockIndex = j;
badBlockIndex = j + 1;
}

//printf("%d\n", area);
totalArea += area;
}

Expand Down

0 comments on commit a5ea09a

Please sign in to comment.