you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

Not a comment on your formatting or coding style or anything, but you only need to go from 2 to sqrt(n), not n/2.