← Questions

Accounts merge: group accounts that share any attribute

0
AmazonCodingLast asked Nov 2026

A coding interview question asked in Amazon's technical phone screen, last asked Nov 2026. It tests union-find, graph and hash map.

You get records [account, attribute]: an attribute is something like a phone number, an email or a device id. Two accounts that share any attribute belong to the same person, and the link is transitive: if a and b share one attribute and…

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 · Technical phone screen · Last asked Nov 202660 min · Live coding in a shared editor that does not run code, plus Leadership Principles questions · No AI

What it tests

union-find · graph · hash map

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