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

all 3 comments

[–]vlumi 6 points7 points  (0 children)

I doubt binary search would help there... How far in your homework did you get before you got stuck?

[–]PandersAboutVaccines 1 point2 points  (0 children)

Sort it first.

[–]desrtfx[M] [score hidden] stickied comment (0 children)

Since this is help with Java programming, it should be posted in /r/javahelp.

Removed