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
/**This problem can be solved using the two-pointer technique. We'll keep one pointer at the start of the array and one at the end, and then we'll move these pointers towards each other, swapping the elements when necessary.