← Microsoft questions

Divide LinkedList into k segments and print in reverse order

Filed under Microsoft

Given the head of a singly linked list and an integer `k`, partition the linked list into `k` consecutive segments as equal in size as possible, and return these segments in reverse order of their…

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 Microsoft questions

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