← Questions

Merge sequences into one duplicate-free order, lexicographically smallest

0
GoogleAirbnbCodingLast asked Nov 2026

A coding interview question asked in Google's first round (coding) and at Airbnb, last asked Nov 2026. It tests graph, topological sort and heap.

You have several lists of integers. Combine them into a single list that holds each distinct number once and keeps every input list's order: whenever a comes before b in some input, a comes before b in the result.

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

What it tests

graph · topological sort · heap

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