solulubeta
Sign in
NeetCode 150 / Linked List
06.11 · Problem

Reverse Nodes in k-Group

Hard Reverse fixed-size segments, reconnect 1 video LC 25 Pro

This problem is part of solulu Pro

Reverse the nodes of a linked list k at a time and return the new head. If the number of nodes left at the end is less than k, leave them as they are. Only change links, not values.

Lifetime ₹1,999 ₹999 · Launch offer
Mark this problem as solved when you are finished.

Item 45 of 150 · updated 2026-10-12