employer cover photo
employer logo
employer logo

nanopay Corporation

Is this your company?

nanopay Corporation interview question

Given a linked list, find the kth element from the end

Interview Answer

Anonymous

20 June 2016

Use two pointers, move the first one k elements ahead of the second, then move both together until the first one gets to the end, return the second