LeetCode Question · Jul 2022 · India

Amazon| SDE 2| India|OA| Linked List

1 upvote 529 views 2 replies

Question Details

Given a Linked List, Reverse the Linked list as shown below by swapping nodes (without changing the value of data in its nodes) Input: 0->1->2->............->(n-3)->(n-2)->(n-1) Output: (n-1)->1->(n-3)->..............->2->(n-2)->0 Eg: Input-1: 1->2->…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Linked List