Tuesday, March 8, 2016

WHERE DO I BELONG

This challenge requires returning the lowest index at which a value  that is second argument should be inserted into an array which is the first argument after sorting it.

The algorithm was quite straight forward, only thing that made me to think was what if the number is to inserted at index greater than last index of the array e.



No comments:

Post a Comment