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
Fix loop condition to prevent duplicate index usage
Updated the while loop condition from `<=` to `<` to ensure that the two-pointer indices do not overlap. This prevents potential errors when processing the array and aligns with the expected logic of the algorithm.
0 commit comments