Bloomberg Interview Question

given a linked list return the node that's n nodes far from the tail.

Interview Answer

Anonymous

Jul 29, 2015

move with 2 pointers with difference n between them until the first reaches the end then return the other.