Leetcode Solutions Java Python C++
All contents and pictures on this website come from the Internet and are updated regularly every week. They are for personal study and research only, and should not be used for commercial purposes. Thank you for your cooperation.
Welcome to Subscribe On Youtube:

206. Reverse Linked List

Reverse a singly linked list.

Example:

Input: 1->2->3->4->5->NULL
Output: 5->4->3->2->1->NULL

Follow up:

A linked list can be reversed either iteratively or recursively. Could you implement both?

Difficulty:

Easy

Lock:

Normal

Company:

Adobe Alibaba Amazon Apple Baidu Bloomberg ByteDance Cisco eBay Facebook FactSet Goldman Sachs Google Intel Mathworks Microsoft Nvidia Oracle Paypal Qualcomm Snapchat TripAdvisor Twitter Two Sigma Uber Visa VMware Walmart Labs Yahoo Yandex Yelp Zenefits

Problem Solution

206-Reverse-Linked-List

All Problems:

Link to All Problems
All contents and pictures on this website come from the Internet and are updated regularly every week. They are for personal study and research only, and should not be used for commercial purposes. Thank you for your cooperation.