MediumTwo Pointers
Remove Nth Node From End of List
Remove nth node from linked list
Solution Approach
Two pointer with gap
Complexity Analysis
Time Complexity
O(n)Space Complexity
O(1)Complexity
Time:O(n)
Space:O(1)
Asked at
GoogleAppleMicrosoft
Remove nth node from linked list
Two pointer with gap
Time Complexity
O(n)Space Complexity
O(1)