Problem 2529 · Easy

Maximum Count of Positive Integer and Negative Integer

In a sorted array, binary search the boundary of the negatives and of the positives, then return the larger count.

Open the interactive visualisation