We can solve this problem by using a greedy strategy.
No summary
A problem set of In-place Reversal of Linked List problems.
We can use Floyd’s cycle detection algorithm to solve this problem.
A good example that slowed how to make your code modular.
No summary
This post explained each step of the solution.
No summary
Drew some comments to visualize each step of the solution.
Solving this problem with classic fast and slow pointers solution