You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 11, 2021. It is now read-only.
For the binary search solution (), the binary search algorithm is not working finding the first and the last numbers.
I propose this approach.
`public static int findTarget(int[] arr, int target) {
if (arr.length == 0) return -1;