Solution to LeetCode Remove nth Node from End of List problem.
To do this in one pass: Start with a pointer \(i\) at the head of the list, and move it forward \(n\) times. Take another pointer \(j\), and start it off at the head of the list. While \(i\) is not null, move both pointers forward. When \(i\) becomes null, \(j\) is located the \(n\)βth node from the end of list.