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!
Loading collection data...
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!