Q: How can I find the Nth node from the end of a linked list?
A: Keep two pointers N distance apart. When the first pointer reaches the end of the list, the second pointer will be our result.
Q: How can I find the Nth node from the end of a linked list?
A: Keep two pointers N distance apart. When the first pointer reaches the end of the list, the second pointer will be our result.