You are viewing a single comment's thread. Return to all comments →
Simplier and only 1 check in a loop (C#)
int result = 0, el = c.Count()-1; for (int i = 0; i < el; i += 2, result++) if (c[i] == 1) i--; return result;
Seems like cookies are disabled on this browser, please enable them to open this website
Jumping on the Clouds
You are viewing a single comment's thread. Return to all comments →
Simplier and only 1 check in a loop (C#)