Reverse nodes in k-group

0
Remix

Reverse a linked list in groups of k nodes, leaving a final group shorter than k as it is. Do it in place with O(1) extra space.

MicrosoftCodingLast asked Oct 2025
No answer yet. Write the first one; the best answer gets endorsed.