← ALL NOTES
Array

2529. Maximum Count of Positive Integer and Negative Integer

Given a sorted ascending array nums, return the maximum of (the count of positive elements) and (the count of negative elements) — zeros count as neither. Sortedness lets you find the zero boundaries…

Loading…