Amazon interview Experience(Onsite Round 1) SDE-2
Summary
I recently had an onsite interview round for an SDE-2 position at Amazon, which included behavioral questions and two distinct coding challenges, one of which I successfully solved.
Full Experience
I went through an onsite interview round for the SDE-2 role at Amazon. The round started with behavioral questions where I was asked to describe a scenario involving a tight deadline and how I managed it. Following that, there were several questions about my current project, requiring me to deep dive into its details, my contributions, and the challenges I faced. After the behavioral segment, we moved on to the coding questions. The first coding problem involved a binary tree, and the second was a string manipulation problem. I managed to solve one of the coding problems completely.
Interview Questions (4)
Describe a task where you had to meet a tight deadline. What was the situation, what actions did you take, and what was the outcome?
Discuss your current project in detail. Be prepared to talk about its architecture, your specific contributions, the challenges you encountered, and how you resolved them.
Given a binary tree and a target node, determine the minimum time taken to burn the entire tree. The fire spreads from the target node to all its immediate neighbors (parent, left child, right child) in one unit of time. Additionally, print the nodes that burn at each level (time unit) in the burning sequence.
Given a string s and an integer k, remove all k consecutive duplicate characters from s. The operation should be repeated until no more k consecutive duplicate characters can be found.