Reverse Linked List II
Try to solve the Reverse Linked List II problem.
We'll cover the following
Statement
Given a singly linked list with nodes and two positions, left
and right
, the objective is to reverse the nodes of the list from left
to right
. Return the modified list.
Constraints:
-
n
-
node.data
-
left
right
n