CodeMosa
Master LeetCode Patterns
All Patterns
Collections
Sign In
Back
In-Place Reversal
Question 1 of 12
8% Complete
Medium
To reverse a sublist from position m to n, what's the key technique?
A
Find nodes before m and after n, reverse the middle part, reconnect
B
Reverse entire list, then reverse parts outside [m,n]
C
Use recursion to reverse the sublist
D
Create a new list with reversed section
Need a hint?
Think about connecting the reversed part back