leetcode
19. Remove Nth Node From End of List
Solution
Java code
Python code
Time complexity: O(n)
Space complexity: O(1)