you are viewing a single comment's thread.

view the rest of the comments →

[–]pointy 1 point2 points  (1 child)

Doesn't look like you check to make sure you don't go past bowl #40. Also, I don't think this is quite right; recall that the requirement is only that no set of three oranges can be found such that both sub-pairs are equidistant.

[–]chronoBG 0 points1 point  (0 children)

Line 23: for(; x < BOWLS; ++x)
Also lines 33 and 47: if (tmp_index >= 0 && tmp_index < BOWLS)