19. 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.
Follow up: Could you do this in one pass?
- new solution update 2022.02.13
c++
1 | /** |
c++
1 | /** |