Find an index where an array of True values turns to False.
Unlock detailed company stats for this questionUpgrade
You are given an array that is a mixture of True and False values. It always starts with True and always ends with False. Find any index i such that arr[i] == True and arr[i+1] == False.
Goal: an optimized O(log n) solution using binary search.
Community answers
No answers contributed by the community yet.


