logo
Interview
    Interview Guide
    Coding Problems List
Sponsored: Coursera
Problems

Nth to Last Node in List

Problem

Find the nth to last element of a singly linked list.

The minimum number of nodes in list is n.

Example

Given a List 3->2->1->5->null and n = 2, return node whose value is 1.

Online Judge