Tagged articles
1 articles
Page 1 of 1
Java Captain
Java Captain
Aug 13, 2019 · Fundamentals

Reversing a Singly Linked List in K‑Node Groups Starting from the Tail

The article explains how to solve a variant of the linked‑list reversal problem where every K nodes are reversed as a group starting from the tail, using recursion and double reversal techniques, and provides complete Java implementations for the algorithm.

Recursionalgorithmk-group reversal
0 likes · 7 min read
Reversing a Singly Linked List in K‑Node Groups Starting from the Tail