18. Remove Nth Node From End of List
Given the head
of a linked list, remove the nth
node from the end of the list and return its head.
Example 1:
Solution: (Removing {length - nth} node from first)
Time Complexity: O(n)
Last updated