Hi,
I’m thinking about the problem in the title and I’m not sure it can always be done in O(logn).
If k is between the start and end values in the input list, we have two separate places to search for - somewhere on the left part and somewhere on the right part, judging min element as diferentiator.