Skip to main content
Remove Nth Node From End of List | AlgoCracked
AlgoCracked
ProblemsRemove Nth Node From End of List
Medium43.0% acceptance
Blind75Linked ListTwo Pointers

Remove Nth Node From End of List

Given the head of a linked list, remove the n -th node counting from the end and return the head. Input format Input is [list, n] , e.g. [[1,2,3,4,5],2] . ListNode is predefined.

Loading workspace…