Reverse every block of k nodes in a linked list, leaving a short tail as it is — then do it iteratively in O(1) space.
Reverse every block of k nodes in a linked list, leaving a short tail as it is — then do it iteratively in O(1) space.
Opens with the full question.