leetcode

19. Remove Nth Node From End of List

Solution

Time complexity: O(n)

Space complexity: O(1)