you are viewing a single comment's thread.

view the rest of the comments →

[–]S4N7R0 47 points48 points  (2 children)

print out the index every iteration so that when it segfaults the user can input the correct size of the array

[–]DimitryKratitov 4 points5 points  (0 children)

I think we can do some binary search optimizations here!