Amazon Software Engineer Interview Experience: Connecting Accounts Through Shared Attributes

Amazon·Software Engineer·Nov 2026
Technical Screenhard

The first part was behavioral questions.

For coding, I was given a collection of records. Each record had two parts: an account and an attribute. Accounts with the same attribute could be linked. If one account had two attributes, the groups on both sides could be merged into one set. I had to find all the connected groups of accounts.

My brain got stuck during the problem, and the answer suddenly came to me after the interview ended. I was just not good enough; what can I do.

I think the answer should be to build two graphs first, then build the groups from the entries in the attribute map. Find the group for each unvisited item, using a queue and BFS inside.

Published

Curated and edited by PracHub

Practice the questions from this interview

Discussion

Sign in to join the discussion. The author is notified of every comment.

Loading comments…

Interview at a glance

Company
Amazon
Role
Software Engineer
Rounds
Technical Screen
Difficulty
hard
Interview date
Nov 2026
Questions from this interview
1 question

Related interview experiences

Explore more interview rounds, questions, and outcomes.

Browse interview experiences