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
Add clarification on sorted array assumption in comments
The added comments explain why the two-pointer approach works due to the sorted nature of the input array. This provides context for the algorithm and highlights its dependency on the input's precondition.
0 commit comments