bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths
EasyLinked ListLC 206

Reverse Linked List

Given the head of a singly linked list, reverse the list, and return the reversed list.

Asked at 35 companies
AdobeAlibabaAmazon
Hints
  • 1.Think about what data structure fits Reverse Linked List
  • 2.Consider the brute force complexity and how to optimize
  • 3.Can you trade space for time?
LeetCodeNeetCode