← Morgan Stanley questions
CodingReported in a candidate post, Mar 2022

Remove the nth node from the end of a linked list

Filed under Morgan Stanley · Also reported at OneDirect, Optum (UnitedHealth Group)

Given the head of a singly linked list and an integer n, remove the nth node from the end of the list and return the head.

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 Morgan Stanley questions

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