← Questions

Merge k sorted lists

0
MetaAmazonCodingLast asked Nov 2026

A coding interview question asked in Amazon's coding round and at Meta, last asked Nov 2026. It tests linked lists, heaps and divide and conquer.

You get k singly linked lists, each sorted in ascending order. Merge them into one sorted linked list and return its head, reusing the existing nodes.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • Amazon · Coding · Last asked Nov 202655 min · Usually two rounds; one is often an object-oriented design built in steps · No AI
  • Meta · Technical phone screen · Last asked Feb 202645 min · Two coding problems in CoderPad, about 20 minutes each · Usually no AI; some newer screens are AI-assisted

What it tests

linked lists · heaps · divide and conquer

Your code and the AI tutor open when you unlock this question.