Count Zeros in a Sorted Binary Array
Asked at Amazon · Coding Questions · Difficulty: Easy
Given a sorted array of 0s followed by 1s, return the number of 0s in `O(log n)`.
Loading the problem…
Asked at Amazon · Coding Questions · Difficulty: Easy
Given a sorted array of 0s followed by 1s, return the number of 0s in `O(log n)`.
Loading the problem…