← Questions

Reconstruct a string from chained segments

0
Microsoft AIMicrosoftCodingLast asked May 2026

A coding interview question asked in Microsoft's coding round and at Microsoft AI, last asked May 2026. It tests hash map, linked list and graphs.

A log-shipping service splits a long message into fragments and sends them out of order. Each fragment is a triple [start_id, end_id, payload]: it covers the stretch from marker start_id to marker end_id and carries the text payload.

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

  • Microsoft · Coding · Last asked May 202660 min · Ten to fifteen minutes of behavioral questions, then coding in HackerRank where you write a main and make the tests pass; usually three rounds · No AI unless the interviewer invites it; some 2026 loops add a round where you bring your own AI agent
  • Microsoft AI · CodingLive coding

What it tests

hash map · linked list · graphs · eulerian path

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