← Amazon questions
CodingReported in a candidate post, Mar 2020

Sort linked list in groups of size k by chunk sum

Filed under Amazon

Given a linked list and integer k, partition the list into chunks of size k. Sort these chunks in descending order based on the sum of their node values, while maintaining the relative order of nodes…

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

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