DEV Community

Hitesh
Hitesh

Posted on

1 1 1 2 1

My Amazon SDE (FTC) Interview Experience 2025

I recently (27-03-2025) had the opportunity to appear for the Amazon SDE interview, which consisted of a Two intense DSA rounds in one day. In these rounds, the interviewer tested me on a mix of problem-solving, logic-building, and optimization awareness. I was asked 4 DSA questions, 2/round, each evaluating different skillsets.


🔹 Question 1: Binary Tree – Sum Tree Validation

Topic: Binary Trees, Recursion

I was given a binary tree and asked to determine if it satisfies a specific sum property (i.e., whether each node’s value equals the sum of its children’s subtree values).

Concepts Tested:

  • Post-order traversal
  • Recursive return of tuple (isValid, sum)
  • Handling base cases for leaf nodes

🧠 Tip: Be confident with writing custom recursive functions and returning multiple values from each call.


🔹 Question 2: Grid BFS – Virus Spread Simulation

Topic: Matrix, Multi-Source BFS

This problem simulated an infection spreading across a 2D grid. Each infected cell (P) spreads to its adjacent non-infected ones (N) per time unit. The task was to compute the minimum time needed to infect all reachable people.

Concepts Tested:

  • BFS using a queue
  • Level-wise traversal (multi-source)
  • Grid bounds and visited updates

🧠 Tip: Practice BFS on 2D grids, especially with multiple starting points.


🔹 Question 3: Range Coverage – Router Signal on Buildings

Topic: Arrays, Prefix Sum, Greedy

Given routers placed on buildings with certain ranges, I had to compute how many buildings are adequately served (i.e., covered by enough routers compared to the number of people in them).

Concepts Tested:

  • Range marking via prefix sum
  • Efficient array manipulation
  • Early stopping conditions

🧠 Tip: Learn how to apply difference arrays to mark and process range updates efficiently.


🔹 Question 4: Graph Reconstruction – Circular Sequence from Pairs

Topic: Graphs, Adjacency List, Traversal

I was given unordered pairs of adjacent symbols forming a circular sequence. The task was to reconstruct a possible valid sequence of those symbols.

Concepts Tested:

  • Graph building from undirected edges
  • Identifying a cycle
  • Visited tracking during DFS or BFS

🧠 Tip: Be ready to reconstruct orderings from unordered pair data, using adjacency lists.


✅ Final Advice

This round tested:

  • Recursion depth (Tree problems)
  • BFS reasoning (Simulation & infection spread)
  • Optimized array processing (Greedy, prefix sum)
  • Graph traversal and cycle detection

To prepare well:

  • Master recursion with trees
  • Practice BFS from multiple sources
  • Learn range-based greedy techniques
  • Get comfortable with graph fundamentals using adjacency lists

I still don't know if there are even implementing these algorithms Amazon. Waiting for the result :/

Quadratic AI

Quadratic AI – The Spreadsheet with AI, Code, and Connections

  • AI-Powered Insights: Ask questions in plain English and get instant visualizations
  • Multi-Language Support: Seamlessly switch between Python, SQL, and JavaScript in one workspace
  • Zero Setup Required: Connect to databases or drag-and-drop files straight from your browser
  • Live Collaboration: Work together in real-time, no matter where your team is located
  • Beyond Formulas: Tackle complex analysis that traditional spreadsheets can't handle

Get started for free.

Watch The Demo 📊✨

Top comments (0)

Image of PulumiUP 2025

Let's talk about the current state of cloud and IaC, platform engineering, and security.

Dive into the stories and experiences of innovators and experts, from Startup Founders to Industry Leaders at PulumiUP 2025.

Register Now

👋 Kindness is contagious

Explore a trove of insights in this engaging article, celebrated within our welcoming DEV Community. Developers from every background are invited to join and enhance our shared wisdom.

A genuine "thank you" can truly uplift someone’s day. Feel free to express your gratitude in the comments below!

On DEV, our collective exchange of knowledge lightens the road ahead and strengthens our community bonds. Found something valuable here? A small thank you to the author can make a big difference.

Okay