โ† OYO questions

Return nth node from the end in a linked list

Filed under OYO

Given the head of a singly linked list and an integer n, find and return the nth node counting backwards from the end of the list. If n is greater than the total number of nodes, return None.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related OYO questions

Collected from public candidate posts and coding forums. Updated Nov 2026.