Cubic interview question

Find before last element in a LinkedList.

Interview Answers

Anonymous

19 Jan 2018

You need to go to the end and then count your way back, make sure to pass back the node each time its passed back.

1

Anonymous

9 Nov 2017

I answered based on the Java API implementation. That was the wrong answer.