bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths
MediumLinked ListLC 19

Remove Nth Node From End of List

Given the head of a linked list, remove the nth node from the end of the list and return its head.

Asked at 15 companies
AdobeAmazonApple
Hints
  • 1.Think about what data structure fits Remove Nth Node From End of List
  • 2.Consider the brute force complexity and how to optimize
  • 3.Can you trade space for time?
LeetCodeNeetCode