← FactSet questions
CodingReported in a candidate post, Jul 2021

Reverse nodes in k-group in a linked list

Filed under FactSet

Given the head of a linked list, reverse the nodes of the list 'k' at a time and return its modified list. If the number of nodes is not a multiple of 'k', the remaining nodes at the end should remain…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related FactSet questions

Collected from public candidate posts and coding forums. Updated Nov 2026.