Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
everything was much easier than I thought at first
This comment is hidden because it contains spoiler information about the solution
The bound + 1 / 2 is a nice trick that is useful in many situations where you need the same index for odd and even lengths.
why hard to read? this is a typical pattern for binary search.. for big arrays, this is the best solution :)
It works... but it's hard to read. I recommend adjusting this to be more understable. Descriptive variable names might help.
Great! You are better than me!