LinkedList Leetcode Problems
Today solved some linked problems based on the two-pointer approach. The two-pointer approach involves using two-pointers often called "slow" and "fast,".The slow pointer moves one step at a time (slow = slow.next), while the fast pointer moves two steps at a time (fast = fast.next.next).
Refer https://www.youtube.com/watch?v=70tx7KcMROc&t=5476s.
Happy Coding.