cousin_it comments on Open thread, Apr. 18 - Apr. 24, 2016 - Less Wrong

2 Post author: MrMind 18 April 2016 07:19AM

You are viewing a comment permalink. View the original post to see all comments and the full post content.

Comments (176)

You are viewing a single comment's thread. Show more comments above.

Comment author: cousin_it 19 April 2016 11:31:49AM 1 point [-]

coding a binary search, which is a little nontrivial because you have to think carefully to avoid off-by-one errors

Half-open ranges are your friend :-)