You are viewing a single comment's thread. Return to all comments →
java solution
int count = 0; for (int i = 0; i < n - 1; i++) { if (c[i] == 0) i++; count++; } System.out.println(count);
Jumping on the Clouds
You are viewing a single comment's thread. Return to all comments →
java solution