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
Maintain three pointers - prev, cur and next. Keep iterating over a list while changing cur pointers next and updating other pointers.
O(n) time, constant space.