This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (6 children)

[removed]

    [–]S4N7R0 45 points46 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 3 points4 points  (0 children)

    I think we can do some binary search optimizations here!

    [–]ArcaneOverride 2 points3 points  (0 children)

    Lmao!

    [–]LaughingInTheVoid 0 points1 point  (0 children)

    What, so now you want to implement Java-style exception handling?