Reverse Nodes in k-Group — Linked List

Reverse each complete group of consecutive items in a chain, leaving a short trailing group untouched, and return the new start.

Linked List · Hard

More in Linked List

All algorithm problems