Reverse Nodes in k-Group
Hard
Linked List
Reverse the nodes of a linked list k at a time and print the result. If the number of remaining nodes is less than k, leave them as they are.
Constraints
1 <= k <= n <= 5000 0 <= value <= 1000
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.