Sunday common C++ interview problem: Removing the n-th element from the back of a singly-linked list.
Given a singly-linked list, remove the n-th element from the end of the list.
You should do this in a single pass and only with constant additional memory.
Solve it yourself: https://compiler-explorer.com/z/bMdMnxbbn
Solution: https://compiler-explorer.com/z/PTKsdK5ce