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
Currently, it is solved in sequential approach which adds time complexity of O(n) but it can be solved using binary search method which eventually results in better time complexity of O(log n).