Find n'th Node from the End of a Linked List
Given a singly linked list, return the nth node from the last node. Return null if n is larger than the size of the list.
We'll cover the following...
Statement
We’re given a singly linked list. Return the node from the last node. Return null if n
is larger than the size of the list.
Example
In the example below, the value of the third to the last node is 3:
Sample input
...Access this course and 1400+ top-rated courses and projects.