Sponsored
Use these hints if you're stuck. Try solving on your own first.
Count how many positive integers and negative integers are in the array.
Since the array is sorted, can we use the binary search?
Solve with full IDE support and test cases