Cubic Interview Question

Find before last element in a LinkedList.

Interview Answers

Anonymous

Jan 19, 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

Nov 9, 2017

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