Upload Button Icon Add office photos
Engaged Employer

i

This company page is being actively managed by Amazon Team. If you also belong to the team, you can get access from here

Amazon Verified Tick

Compare button icon Compare button icon Compare

Filter interviews by

Clear (1)

Amazon SDE-2 Interview Questions, Process, and Tips

Updated 9 Dec 2024

Top Amazon SDE-2 Interview Questions and Answers

  • Q1. Ways To Make Coin Change Given an infinite supply of coins of varying denominations, determine the total number of ways to make change for a specified value using these ...read more
  • Q2. Shopping Options Problem Statement Given arrays representing the costs of pants, shirts, shoes, and skirts, and a budget amount 'X', determine the total number of valid ...read more
  • Q3. There is a 12 km road and a contractor who is in-charge of repairing it. Contractor updates you about the work which is done in patches. Like “Road between 3.2 km to 7.9 ...read more
View all 39 questions

Amazon SDE-2 Interview Experiences

14 interviews found

SDE-2 Interview Questions & Answers

user image Anonymous

posted on 9 Dec 2024

Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Coding Test 

Hacker Rank test - 4 rounds (Coding, System Design and Work style assessment, Leadership Principles)

Round 2 - Technical 

(2 Questions)

  • Q1. LC - 2 medium difficulty questions
  • Q2. System design discussion

SDE-2 Interview Questions & Answers

user image Anonymous

posted on 3 Sep 2024

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
4-6 weeks
Result
Not Selected

I applied via Company Website and was interviewed in Mar 2024. There were 2 interview rounds.

Round 1 - Coding Test 

Amazon Online assessment which consisted of 2 coding DSA medium question

Round 2 - One-on-one 

(3 Questions)

  • Q1. Question related to TreeMap
  • Q2. Question related BFS
  • Q3. System Design - Design Feed system

Interview Preparation Tips

Interview preparation tips for other job seekers - Be ready to answer questions in 25 minuted both coding and system design

SDE-2 Interview Questions Asked at Other Companies

asked in Walmart
Q1. Maximum Frequency Number Problem Statement Given an array of inte ... read more
asked in Atlassian
Q2. K Most Frequent Words Problem Statement Given an array of N non-e ... read more
Q3. Reverse String Operations Problem Statement You are provided with ... read more
asked in KhataBook
Q4. Alien Dictionary Problem Statement Ninja is mastering an unusual ... read more
asked in Zoho
Q5. Make Palindrome Problem Statement You are provided with a string ... read more

SDE-2 Interview Questions & Answers

user image Anonymous

posted on 6 Jul 2022

Round 1 - Coding Test 

Diameter of a binary tree and bfs and dfs questions

Round 2 - Coding Test 

Data structure and algorithms

Round 3 - Technical 

(1 Question)

  • Q1. System design questions

Interview Preparation Tips

Interview preparation tips for other job seekers - Prepare data structure well and system design

SDE-2 Interview Questions & Answers

user image Anonymous

posted on 18 Apr 2022

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all Resume tips
Round 2 - One-on-one 

(1 Question)

  • Q1. Behavioural questions related to leadership principle.

Interview Preparation Tips

Interview preparation tips for other job seekers - Nothing specific, respond back based on your experience

Amazon interview questions for designations

 SDE

 (44)

 SDE Intern

 (15)

 SDE-1 Position

 (2)

 Sdet 2

 (1)

 SDE (Software Development Engineer)

 (22)

 HR Associate 2

 (3)

 Senior Associate 2

 (1)

 Support Engineer 2

 (1)

SDE-2 Interview Questions & Answers

user image Anonymous

posted on 16 Sep 2021

I was interviewed in Apr 2021.

Round 1 - Video Call 

Round duration - 60 Minutes
Round difficulty - Medium

Timing: 10AM-11AM
Interviewer was quite supportive and helpful.
Environment was normal as usual and it was morning time

Round 2 - Video Call 

(2 Questions)

Round duration - 60 Minutes
Round difficulty - Medium

Timing: 11AM-12PM
The interviewer was SDE2
He was checking the code for edge cases and was hinting if required

  • Q1. 

    Implementing a Priority Queue Using Heap

    Ninja has been tasked with implementing a priority queue using a heap data structure. However, he is currently busy preparing for a tournament and has requested yo...

  • Ans. 

    Implement a priority queue using a heap data structure with push, pop, getMaxElement, and isEmpty functions.

    • Implement a priority queue using a max heap data structure.

    • Use the provided class structure and complete the push, pop, getMaxElement, and isEmpty functions.

    • For push operation, insert the element into the heap and maintain the heap property.

    • For pop operation, remove the largest element from the heap.

    • For getMaxEle...

  • Answered by AI
  • Q2. 

    Ninja and the Bulbs Challenge

    Ninja owns an electronic shop and possesses 'N' bulbs. To verify the quality of the bulbs, Ninja performs a unique technique. After 'N' rounds of this process, bulbs that rem...

  • Ans. 

    Determine the number of good quality bulbs remaining after 'N' rounds of a unique technique.

    • Start with all bulbs on in the first round

    • Toggle every 'i' bulb in 'i' round

    • Count the bulbs that remain on after 'N' rounds

  • Answered by AI
Round 3 - Video Call 

(1 Question)

Round duration - 60 Minutes
Round difficulty - Medium

Timing: 6PM-7PM
The interviewer was not interactive and didn't gave any feedback whatsoever.
It was Hiring Manager Round
Interviewer was Software Development Manager at Amazon

  • Q1. 

    Maximize the Sum Through Two Arrays

    You are given two sorted arrays of distinct integers, ARR1 and ARR2. If there is a common element in both arrays, you can switch from one array to the other.

    Your task...

  • Ans. 

    Find the maximum sum by traversing through common elements in two sorted arrays.

    • Start with the array containing the smaller first common element

    • Switch arrays at common elements to maximize the sum

    • Continue adding elements until the end of the arrays

  • Answered by AI

Interview Preparation Tips

Professional and academic backgroundI completed Computer Science Engineering from A. C. Patil College of Engineering. I applied for the job as SDE - 2 in BangaloreEligibility criteriaAbove 2 years of experienceAmazon interview preparation:Topics to prepare for the interview - Linkedlist, BST, Heap, Queue, Pointers, Binary SearchTime required to prepare for the interview - 2 MonthsInterview preparation tips for other job seekers

Tip 1 : Focus on internals of Data structure on how it actually works
Tip 2 : Implement the Data Structure from scratch, later you can use the inbuilt packages no problem but you must know the implementation
Tip 3 : Understand System Design concepts

Application resume tips for other job seekers

Tip 1 : Highlight your contributions you made and how it impacted the business and be real
Tip 2 : Mention the improvement figures like x% reduction in page load size, improved SEO ranking by x figure, reduce memory usage by y%

Final outcome of the interviewRejected

Skills evaluated in this interview

Get interview-ready with Top Amazon Interview Questions

SDE-2 Interview Questions & Answers

user image Anonymous

posted on 16 Sep 2021

I was interviewed in Apr 2021.

Round 1 - Telephonic Call 

(2 Questions)

Round duration - 60 minutes
Round difficulty - Easy

Started with brief intro(5 mins) about interviewer.
Problem solving question, question was already there in the codelink shared by the interviewer. He explained the problem again with sample testcase. 
The Interviewer was friendly.

  • Q1. 

    Course Schedule II Problem Statement

    You are provided with a number of courses 'N', some of which have prerequisites. There is a matrix named 'PREREQUISITES' of size 'M' x 2. This matrix indicates that fo...

  • Ans. 

    Given courses with prerequisites, determine a valid order to complete all courses.

    • Create a graph with courses as nodes and prerequisites as edges.

    • Use topological sorting to find a valid order to complete all courses.

    • Return an empty list if it's impossible to complete all courses.

  • Answered by AI
  • Q2. Design a live video broadcast platform.
  • Ans. 

    Design a live video broadcast platform.

    • Implement video streaming functionality using protocols like RTMP or WebRTC

    • Include features for live chat, reactions, and audience engagement

    • Ensure scalability and reliability by using cloud services like AWS or Azure

    • Provide analytics for viewership data and user engagement

    • Integrate monetization options such as ads or subscriptions

  • Answered by AI
Round 2 - Video Call 

(2 Questions)

Round duration - 90 minutes
Round difficulty - Medium

There were 2 interviewers(India HM and Seattle HM), India HM was just shadowing and didn't ask any questions. Started with intro, he asked in detail about what I do at current company(10 mins). Again, jumped into LP's(25 mins).

  • Q1. 

    Distance Between Two Nodes in a Binary Tree

    Given a binary tree and the values of two distinct nodes, determine the distance between these two nodes in the tree. The distance is defined as the minimum num...

  • Ans. 

    Calculate the distance between two nodes in a binary tree.

    • Traverse the tree to find the paths from the root to each node

    • Find the lowest common ancestor of the two nodes

    • Calculate the distance by summing the distances from each node to the common ancestor

  • Answered by AI
  • Q2. 

    Median in a Stream Problem Statement

    Your task is to determine the median of integers as they are read from a data stream. The median is the middle value in the ordered list of numbers. If the list length...

  • Ans. 

    Find median of integers in a data stream as they are read.

    • Use two heaps - max heap for lower half of numbers and min heap for upper half.

    • Keep the size of two heaps balanced to find the median efficiently.

    • Handle even and odd number of elements separately to calculate median.

    • Return vector of medians after each element is read from the stream.

  • Answered by AI
Round 3 - Telephonic Call 

Round duration - 60 minutes
Round difficulty - Medium

There was only 1 interviewer in this round and We had no video sharing in this round so it was becoming difficult to understand each other.

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE - 2 in SeattleEligibility criteriaNAAmazon interview preparation:Topics to prepare for the interview - Data Structures - Trie, HashMap, Sets, Priority Queue, Stack, Advanced Topics like Fenwick Tree, Segment Trees, Game Theory, Dynamic Programming, Union Find,Graph Algorithms, BitmaskingTime required to prepare for the interview - 3 monthsInterview preparation tips for other job seekers

Tip 1 : Bookmark the GFG Amazon Archives. It helped me a lot during my preparations. Reading other’s interview experiences is one of the best ways to get yourselves ready for the next job interview. Practice daily atleast 5 questions.
Tip 2 : Most commonly asked topics in Amazon Interviews ( as per the mail I received from my recruiter ) :
BFS/DFS/Flood fill, Binary Search, Tree traversals, Hash tables, Linked list, stacks, queues, two pointers/sliding window
Binary heaps, Ad hoc/string manipulations.
Tip 3 : Highly recommended sites for practicing questions ( usually practice medium and hard level questions) :
Leetcode (highly encouraged)
Geeksforgeeks (highly encouraged)
CodeZen( highly encouraged)
Codeforces
Tip 4 : This is a great bigocheatsheet that could be of great help https://www.bigocheatsheet.com/

Application resume tips for other job seekers

Tip 1 : Mention past working experience in detail as how you were important to your previous company.
Tip 2 : Try to keep your resume to 1 page if work experience < 5 years
Tip 3 : Update your resume according to role you are applying for and never put false things on resume.

Final outcome of the interviewRejected

Skills evaluated in this interview

SDE-2 Interview Questions & Answers

user image Anonymous

posted on 16 Sep 2021

I was interviewed in Mar 2021.

Round 1 - Coding Test 

(2 Questions)

Round duration - 45 minutes
Round difficulty - Medium

This round was scheduled in the evening hours and all the participants were required to fill a form which was shared 15 minutes prior to the start of the online coding round. This form was filled out probably for the security reasons and to ensure that no one disinterested participant gives the test.

  • Q1. 

    Ways To Make Coin Change

    Given an infinite supply of coins of varying denominations, determine the total number of ways to make change for a specified value using these coins. If it's not possible to make...

  • Ans. 

    The task is to find the total number of ways to make change for a specified value using given denominations.

    • Use dynamic programming to solve this problem efficiently.

    • Create a 2D array to store the number of ways to make change for each value using different denominations.

    • Iterate through each denomination and update the array based on the number of ways to make change for each value.

    • Return the value at the last cell of

  • Answered by AI
  • Q2. 

    Validate Binary Search Tree (BST)

    You are given a binary tree with 'N' integer nodes. Your task is to determine whether this binary tree is a Binary Search Tree (BST).

    BST Definition:

    A Binary Search Tr...

  • Ans. 

    Validate if a given binary tree is a Binary Search Tree (BST) or not.

    • Check if the left subtree of a node contains only nodes with data less than the node's data

    • Check if the right subtree of a node contains only nodes with data greater than the node's data

    • Recursively check if both left and right subtrees are also binary search trees

  • Answered by AI
Round 2 - Telephonic Call 

(1 Question)

Round duration - 60 minutes
Round difficulty - Hard

This round was on call where I was just supposed to answer the tech questions that were asked. It started with a brief interview with one another and then moved to questions on DBMS, operating systems, computer networks and all. Almost 20-25 questions were asked and I probably answered 90% of them correctly.

  • Q1. 

    Reverse Linked List Problem Statement

    Given a Singly Linked List of integers, your task is to reverse the Linked List by altering the links between the nodes.

    Input:

    The first line of input is an intege...
  • Ans. 

    Reverse a singly linked list by altering the links between nodes.

    • Iterate through the linked list and reverse the links between nodes

    • Use three pointers to keep track of the current, previous, and next nodes

    • Update the links between nodes to reverse the list

    • Return the head of the reversed linked list

  • Answered by AI
Round 3 - HR 

Round duration - 30 minutes
Round difficulty - Hard

There was only one interviewer for this round. He continuously interacted with me and was giving me some good situational problems that were not very easy to answer. Basically those were open-minded questions which can be answered oth ways and that's why I found it quiet hard as per my nature but at the end things went well for me.

Interview Preparation Tips

Professional and academic backgroundI completed Mechanical Engineering from Malaviya National Institute of Technology Jaipur. I applied for the job as SDE - 2 in HyderabadEligibility criteriaabove 7 cgpa, no backlogsAmazon interview preparation:Topics to prepare for the interview - Data Structures, hashmap, linked list, Pointers, OOPS, System Design, Algorithms, Dynamic Programming, array, 2-pointer problemsTime required to prepare for the interview - 8 monthsInterview preparation tips for other job seekers

Tip 1 : practice on gfg and coding ninjas
Tip 2 : compete on codechef and codeforces
Tip 3 : learn DSA and practice regularly

Application resume tips for other job seekers

Tip 1 : put your entire valuable experience in brief
Tip 2 : put the handle of you competitive coding profiles
Tip 3 : try to put those things that really attracts the recruiter, will be better if your past experiences relates to the company

Final outcome of the interviewSelected

Skills evaluated in this interview

SDE-2 Interview Questions & Answers

user image Anonymous

posted on 16 Sep 2021

I was interviewed in Oct 2020.

Round 1 - Coding Test 

(2 Questions)

Round duration - 90 minutes
Round difficulty - Easy

I got a call from an Amazon recruiter regarding the schedule of the test . She sent me the coding test link which I had to complete within a week. we can attempt the online test anytime, when we have time for a period of 90 minutes at a stretch.Once I completed the test, I got a call to schedule the interviews in two weeks.

  • Q1. 

    Shopping Options Problem Statement

    Given arrays representing the costs of pants, shirts, shoes, and skirts, and a budget amount 'X', determine the total number of valid combinations that can be purchased ...

  • Ans. 

    Determine total number of valid shopping combinations within budget

    • Iterate through all possible combinations of items from each array

    • Check if the total cost of the combination is within the budget

    • Return the count of valid combinations

  • Answered by AI
  • Q2. 

    Max Submatrix Problem Statement

    You are provided with a matrix MAT consisting of integers, with dimensions N x M (i.e., N rows and M columns). Your objective is to determine the maximum sum submatrix with...

  • Ans. 

    Find the maximum sum submatrix in a given matrix.

    • Iterate over all possible submatrices and calculate their sums

    • Use Kadane's algorithm to find the maximum sum subarray in each row

    • Combine the sums of rows to find the maximum sum submatrix

  • Answered by AI
Round 2 - Video Call 

(2 Questions)

Round duration - 60 minutes
Round difficulty - Medium

Virtual interview occured in amazon chime.The interviewer gave his introduction, asked me a bit on the kind of projects I’ve worked on. Then he started with a data structure problem.

  • Q1. 

    Clone a Binary Tree with Random Pointers

    Given a binary tree where each node has pointers to its left, right, and a random node, create a deep copy of the binary tree.

    Input:

    The first line contains an ...
  • Ans. 

    Clone a binary tree with random pointers and verify if cloning was successful by printing inorder traversal.

    • Create a deep copy of the binary tree with random pointers.

    • Print the inorder traversal of the cloned binary tree.

    • Verify cloning success by printing '1' if successful, '0' otherwise.

  • Answered by AI
  • Q2. 

    The Ninja Port Problem

    Ninja is in a city with 'N' colonies, where each colony contains 'K' houses. He starts at house number "sourceHouse" in colony number "sourceColony" and wants to reach house number ...

  • Ans. 

    The Ninja Port Problem involves finding the minimum time for a ninja to travel between colonies and houses using secret paths and teleportation.

    • Calculate the minimum time considering teleportation within colonies, traveling between colonies, and secret paths.

    • Keep track of the number of secret paths used and ensure they are one-way.

    • Consider the constraints provided to optimize the solution.

    • Example: N=2, K=3, S=1, P=1, s...

  • Answered by AI
Round 3 - Video Call 

Round duration - 75 Minutes
Round difficulty - Easy

This was taken by an engineering manager who asked me regarding my projects for around 10-15 mins and then we moved to a system design problem. He asked me to design Slack messenger.
I started by listing the functional and non-functional requirements(on which he questioned me a bit), then I moved to draw the high-level architecture. The components which I drew were the clients, gateway service(LB + authentication, etc), Messaging Service, User Service, Web Socket Manager service, Fan Out service(I added this for the group messages thing, but he didn’t interrogate much on that).

He asked me what would be the schema of my messages table and the scenarios in which the recipient user is online/offline.Also asked about the partitioning key and primary key of the 2-3 tables which I had made

Round 4 - Video Call 

(2 Questions)

Round duration - 60 minutes
Round difficulty - Hard

BarRaiser Round

This was again taken by an engineering manager who discussed my projects in depth for around 20-25 mins. In the remaining time he asked me 2 dsa questions. (Yes I too was surprised that he didn’t ask anything regarding design).

In almost all the rounds, I was asked questions related to Amazon Leadership principles, so do make sure you go through those before sitting for the interview process. You can refer to this link(https://www.codingninjas.com/codestudio/problem-lists/top-amazon-coding-interview-questions) for practicing the same, I found it useful. 
In the design rounds, interviewer doesn’t expect the most ideal answer from you and unless your choice of technology is outrageously wrong, he won’t pinpoint that.

  • Q1. 

    Group Anagrams Together

    Given an array/list of strings STR_LIST, group the anagrams together and return each group as a list of strings. Each group must contain strings that are anagrams of each other.

    E...

  • Ans. 

    Group anagrams together in a list of strings.

    • Iterate through the list of strings and sort each string to group anagrams together.

    • Use a hashmap to store the sorted string as key and the original string as value.

    • Return the values of the hashmap as the grouped anagrams.

  • Answered by AI
  • Q2. 

    Add Two Numbers Represented by Linked Lists

    Your task is to find the sum list of two numbers represented by linked lists and return the head of the sum list.

    Explanation:

    The sum list should be a linked...

  • Ans. 

    Add two numbers represented by linked lists and return the head of the sum list.

    • Traverse both linked lists simultaneously while keeping track of carry from previous sum

    • Create a new linked list to store the sum of the two numbers

    • Handle cases where one linked list is longer than the other by padding with zeros

    • Update the sum and carry values accordingly while iterating through the linked lists

  • Answered by AI

Interview Preparation Tips

Professional and academic backgroundI completed Computer Science Engineering from Sathyabama Institute Of Science And Technology. I applied for the job as SDE - 2 in HyderabadEligibility criteriaNo CGPA criteriaAmazon interview preparation:Topics to prepare for the interview - Data Structures and Algorithms, OOPS concepts, cpp, operating systems, dbmsTime required to prepare for the interview - 3 monthsInterview preparation tips for other job seekers

Tip 1 : Expect questions related to Amazon Leadership principles in all rounds, so go through those thoroughly before sitting for the interview process.
Tip 2 : In the design rounds, interviewer doesn’t expect the most ideal answer from you and unless your choice of technology is outrageously wrong, he won’t pinpoint that.
Tip 3 : Data Structures questions are a must in all rounds, so try to master them thoroughly

Application resume tips for other job seekers

Tip 1 : Make sure you know everything you mention in your resume
Tip 2 : Have some hands on with hackathons and contests ,which brings an added value to your resume

Final outcome of the interviewRejected

Skills evaluated in this interview

SDE-2 Interview Questions & Answers

user image Anonymous

posted on 16 Sep 2021

I was interviewed before Sep 2020.

Round 1 - Coding Test 

(2 Questions)

Round duration - 90 minutes
Round difficulty - Medium

  • Q1. 

    Number of Islands Problem Statement

    You are provided with a 2D array or list containing 'N' rows and 'M' columns, filled with 1s and 0s. Here, 1 indicates land, and 0 indicates water.

    Your task is to ide...

  • Ans. 

    Count the number of islands in a 2D matrix filled with 1s and 0s.

    • Iterate through the matrix and perform depth-first search (DFS) to find connected islands.

    • Use a visited array to keep track of visited cells to avoid redundant calculations.

    • Increment the island count whenever a new island is encountered.

    • Consider all eight directions (horizontal, vertical, and diagonal) while exploring the island.

    • Handle edge cases like out

  • Answered by AI
  • Q2. 

    Add First and Second Half Problem Statement

    You are provided with a Singly Linked List having 'N' nodes, where each node contains a single digit.

    Your task is to return a node 'X', which serves as the he...

  • Ans. 

    Return a node representing the head of a new Linked List with the sum of the 1st and 2nd half of the given Linked List.

    • Split the Linked List into two halves

    • Reverse the 2nd half of the Linked List

    • Add the corresponding digits from both halves while considering carry

    • Create a new Linked List with the sum digits

  • Answered by AI
Round 2 - Video Call 

(1 Question)

Round duration - 60 minutes
Round difficulty - Medium

  • Q1. 

    Next Greater Element Problem Statement

    You are given an array arr of length N. For each element in the array, find the next greater element (NGE) that appears to the right. If there is no such greater ele...

  • Ans. 

    The task is to find the next greater element for each element in an array to its right, if no greater element exists, return -1.

    • Use a stack to keep track of elements for which the next greater element is not found yet.

    • Iterate through the array from right to left, popping elements from the stack until a greater element is found.

    • Store the next greater element for each element in a separate array.

    • If the stack is empty aft...

  • Answered by AI
Round 3 - Video Call 

(2 Questions)

Round duration - 60 Minutes
Round difficulty - Hard

  • Q1. 

    Word Break Problem Statement

    You are given a non-empty string without spaces, referred to as 'sentence', and a list of non-empty strings representing a dictionary. Your task is to construct and return all...

  • Ans. 

    Given a sentence and a dictionary, construct and return all possible sentences by inserting spaces to form words from the dictionary.

    • Use backtracking to generate all possible combinations of words from the dictionary to form sentences.

    • Check if a substring of the sentence matches any word in the dictionary, if so, recursively call the function with the remaining substring.

    • Continue this process until the entire sentence ...

  • Answered by AI
  • Q2. 

    Valid Parenthesis Problem Statement

    Given a string str composed solely of the characters "{", "}", "(", ")", "[", and "]", determine whether the parentheses are balanced.

    Input:

    The first line contains ...
  • Ans. 

    Check if given string of parentheses is balanced or not.

    • Use a stack to keep track of opening parentheses and pop when a closing parenthesis is encountered.

    • If stack is empty at the end and all parentheses are matched, the string is balanced.

    • If stack is not empty at the end or mismatched parentheses are encountered, the string is not balanced.

  • Answered by AI
Round 4 - Video Call 

(1 Question)

Round duration - 60 minutes
Round difficulty - Easy

  • Q1. Design a local transport system similar to BMTC.
  • Ans. 

    Design a local transport system similar to BMTC

    • Introduce a fleet of buses covering various routes within the city

    • Implement a smart card system for easy payment and tracking

    • Include different types of buses like regular, AC, and Volvo for passenger comfort

    • Have designated bus stops with real-time information on bus arrivals

    • Offer discounted fares for students and senior citizens

  • Answered by AI
Round 5 - Video Call 

Round duration - 60 minutes
Round difficulty - Easy

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE - 2 in BangaloreEligibility criteriaNAAmazon interview preparation:Topics to prepare for the interview - Graph , Dynamic Programming, Array, String, System DesignTime required to prepare for the interview - 2 monthsInterview preparation tips for other job seekers

Tip 1 : Practice a lot.
Tip 2 : Focus on system design 
Tip 3 : Focus on amazon Leadership principles.

Application resume tips for other job seekers

Tip 1: Mention relevant details for job you are applying. 
Tip 2: Be objective and concise.

Final outcome of the interviewRejected

Skills evaluated in this interview

SDE-2 Interview Questions & Answers

user image Anonymous

posted on 16 Sep 2021

I was interviewed in Oct 2020.

Round 1 - Face to Face 

(3 Questions)

Round duration - 60 mins
Round difficulty - Medium

3 Questions were asked : 2- Trees and 1- Stack.
Interviewer was not receptive at all, I think this was a stress interview.

  • Q1. 

    Validate Binary Search Tree Problem Statement

    Given a binary tree with 'N' nodes, determine if it is a Binary Search Tree (BST). Return true if the tree is a BST, otherwise return false.

    Example:

    Input:
    ...
  • Ans. 

    Validate if a given binary tree is a Binary Search Tree (BST) or not.

    • Check if the left subtree of a node contains only nodes with values less than the node's value.

    • Check if the right subtree of a node contains only nodes with values greater than the node's value.

    • Ensure that both the left and right subtrees are also binary search trees.

    • Traverse the tree in-order and check if the elements are in sorted order.

    • Use a recurs...

  • Answered by AI
  • Q2. 

    Binary Tree Conversion to Greater Tree

    Given a binary tree with 'N' nodes, transform it into a Greater Tree. In this transformation, each node's value should be updated to the sum of its original value and...

  • Ans. 

    Convert a binary tree into a Greater Tree by updating each node's value to the sum of its original value and the values of all nodes greater than or equal to it.

    • Traverse the tree in reverse inorder (right, root, left) to update the nodes' values.

    • Keep track of the sum of nodes visited so far to update each node's value.

    • Recursively update the node's value by adding the sum of greater nodes to it.

  • Answered by AI
  • Q3. 

    Check for Valid Parentheses

    You are given a string STR containing only the characters "{", "}", "(", ")", "[", and "]". Your task is to determine if the parentheses in the string are balanced.

    Input:

    Th...
  • Ans. 

    Check if the given string containing only parentheses is balanced or not.

    • Use a stack to keep track of opening parentheses.

    • Iterate through the string and push opening parentheses onto the stack.

    • When a closing parenthesis is encountered, pop from the stack and check if it matches the corresponding opening parenthesis.

    • If at the end the stack is empty, return 'YES' else return 'NO'.

  • Answered by AI
Round 2 - Face to Face 

(2 Questions)

Round duration - 60 mins
Round difficulty - Hard

2 Coding Questions were asked, both were of Medium to Hard Difficulty.

  • Q1. 

    Flatten Multi-Level Linked List

    You are given a multi-level linked list containing 'N' nodes. Each node has 'next' and 'child' pointers that may or may not point to other nodes. Your task is to flatten th...

  • Ans. 

    Flatten a multi-level linked list into a single linked list by rearranging the pointers.

    • Traverse the linked list and whenever a node has a child, flatten the child list and append it after the current node.

    • Update the 'next' and 'child' pointers accordingly while flattening the list.

    • Continue this process until all nodes are rearranged into a single linked list.

  • Answered by AI
  • Q2. 

    Rain Water Trapping Problem Statement

    Given an array/list ARR of size N, representing an elevation map where each element ARR[i] denotes the elevation of the i-th bar. Your task is to calculate and print ...

  • Ans. 

    Calculate the total amount of rainwater that can be trapped between given elevations in an elevation map.

    • Use two-pointer approach to keep track of left and right boundaries.

    • Calculate the trapped water by finding the minimum of left_max and right_max for each bar.

    • Subtract the current bar's height from the minimum of left_max and right_max to get the trapped water.

    • Keep updating the left_max and right_max as you iterate t

  • Answered by AI
Round 3 - Face to Face 

Round duration - 90 minutes
Round difficulty - Medium

Timing : It was late night.
How the interviewer was? He was very tired and I had to lead the discussion.
1 System Design Question was asked, had to provide - HLD, LLD, APIs.

Round 4 - Telephonic Call 

(1 Question)

Round duration - 60 minutes
Round difficulty - Medium

Timing : Afternoon
How was the environment? Home
Interviewer : Hiring Manager

  • Q1. Hiring Manager Discussion

    Discussed about past Projects, challenges faced, disagreements with manager, why looking for job switch,  leadership principle questions were asked.

Round 5 - Telephonic Call 

Round duration - 60 minutes
Round difficulty - Medium

Timing - Afternoon
How was the environment? Home
How the interviewer was? Very Helpful Interviewer
Bar raiser Round - Coding + System Design + Leadership principle

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE - 2 in HyderabadEligibility criteria3+ years ExperienceAmazon interview preparation:Topics to prepare for the interview - DS/Algo, System Design, HLD, LLD, Behavioral questionsTime required to prepare for the interview - 3 monthsInterview preparation tips for other job seekers

Tip 1 : 250 Leetcode ( Easy- 70, Medium- 150, Hard- 30) 
Tip 2 : Don't underestimate importance of good projects on your Resume.
Tip 3 : Be Confident.

Application resume tips for other job seekers

Tip 1: Resume should not be more than 1 page.
Tip 2: Have Keywords on Resume that match Job descriptions.

Final outcome of the interviewSelected

Skills evaluated in this interview

Contribute & help others!
anonymous
You can choose to be anonymous

Amazon Interview FAQs

How many rounds are there in Amazon SDE-2 interview?
Amazon interview process usually has 2-3 rounds. The most common rounds in the Amazon interview process are Coding Test, Technical and One-on-one Round.
What are the top questions asked in Amazon SDE-2 interview?

Some of the top questions asked at the Amazon SDE-2 interview -

  1. There is a 12 km road and a contractor who is in-charge of repairing it. Contra...read more
  2. Given a string you need to print all possible strings that can be made by placi...read more
  3. Design data structure that supports insert(), remove(), find-max(), delete-max(...read more

Recently Viewed

PHOTOS

InsuranceDekho

3 office photos

LIST OF COMPANIES

Credit Bajaar

Overview

INTERVIEWS

Inox Wind

No Interviews

INTERVIEWS

Coverfox

No Interviews

SALARIES

Vedanta Resources

No Salaries

LIST OF COMPANIES

Vedanta Resources

Overview

COMPANY BENEFITS

Vedanta Resources

No Benefits

COMPANY BENEFITS

Cogent E Services

No Benefits

SALARIES

Cogent E Services

No Salaries

LIST OF COMPANIES

Cogent E Services

Overview

Tell us how to improve this page.

Amazon SDE-2 Interview Process

based on 3 interviews

3 Interview rounds

  • Coding Test Round
  • Video Call Round - 1
  • Video Call Round - 2
View more

SDE-2 Interview Questions from Similar Companies

Flipkart SDE-2 Interview Questions
4.0
 • 4 Interviews
Uber SDE-2 Interview Questions
4.2
 • 2 Interviews
Paytm SDE-2 Interview Questions
3.3
 • 1 Interview
OLX SDE-2 Interview Questions
3.8
 • 1 Interview
View all
Amazon SDE-2 Salary
based on 309 salaries
₹23 L/yr - ₹80 L/yr
63% more than the average SDE-2 Salary in India
View more details

Amazon SDE-2 Reviews and Ratings

based on 18 reviews

2.7/5

Rating in categories

3.0

Skill development

2.2

Work-life balance

3.3

Salary

2.3

Job security

2.4

Company culture

2.8

Promotions

2.5

Work satisfaction

Explore 18 Reviews and Ratings
Customer Service Associate
4.2k salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Transaction Risk Investigator
3.1k salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Associate
2.8k salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Senior Associate
2.5k salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Program Manager
2.1k salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Explore more salaries
Compare Amazon with

Flipkart

4.0
Compare

TCS

3.7
Compare

Google

4.4
Compare

Netflix

4.5
Compare
Did you find this page helpful?
Yes No
write
Share an Interview