Open In App

Amazon Interview Experience for SDE (On-Campus)

Last Updated : 30 Sep, 2022
Like Article

Technical-Round (Duration-1hr):

  • Introduction
  • Diameter of Tree
  • Given two arrays old_profit and new_profit of length n where old_profit[ i ] and new_profit[ i ] represent profit from shop in the old city and new city respectively at day i+1. You have to shift the shop from the old city to the new city such that the total profit is maximum. Find the maximum profit.


old_profit = [5 , 25, 10, 7 , 9 , 11]
new_profit= [10 , 5,  11, 13, 7, 14]

Output: 75

 Day  -  Profit   
1       -  5    
2       -   25
Now shift the shop to new place
3       -  11
4       -  13
5       -   7
6       -   14
So the total maximum profit becomes 75
  • Would you be able to switch to another language?


  • Firstly Interviewer asked me for an approach once he was fully satisfied with the approach then he told me to do the code. When I was done with coding, he gave me some test cases to dry run. After that, he asked me about space and time Complexity of code.
  • I was free to code in any language  ( I chose Python).
  • There was only one interview round.

Previous Article
Next Article

Similar Reads

Amazon Interview Experience SDE-1 | Amazon-WOW 2020
4 Technical rounds: First Technical Round: 1. Given two arrays and we need to find whether one array is a subset of other or not Ex: array1: 1 6 5 array2: 1 4 7 3 5 6 o/p: yes 2. Given a matrix and there will be bombs in the cells, find the number of blasts. A group of connected bombs leads to blast. 3. Level order traversal of a tree. Second Techn
2 min read
Amazon SDE-1 Interview Experience | Amazon WOW-2020
Online Test: The first round contain easy to medium questions. The online test consists of 28 MCQs in which there were general aptitude questions, OOPS, output, Data structure etc. In addition to this, there were 2 coding questions. Q1). Q2).Find the position of leftmost and the rightmost set bit, a
2 min read
Amazon Interview Experience for SDE-1 | Amazon-WOW 2020
Amazon has a special program called AmazonWOW for women. It is to promote women in technology. It is a very good opportunity for women as they have to only compete with other females, not with males. The online application came in April. The program consists of a two-month internship for prefinal year student and fulltime plus Internship for final
8 min read
Amazon Interview Experience for SDE-1 (Amazon Wow drive)
I applied for role of SDE I through Amazon WOW drive 2020. There were a total of 5 rounds (1 coding test + 4 interviews). Originally interviews were supposed to be offline but because of coronavirus pandemic, I gave my interviews online. Round 1: Round 1 was online coding round consisting of 2 coding questions and 28 MCQs based on C, C++, Java, dat
5 min read
Amazon Interview Experience for SDE-1 (Off Campus)
I was contacted by Amazon recruiter for SDE-1 role. Coding round: 2 simple coding questions were asked . (don't remember exactly), you need to solve both questions to get a call for interview. Round 1 (Coding Round): This round was taken by senior SDE-2. She ask me to give introduction about my-self and then directly jumped into coding questions. F
2 min read
Amazon Wow Interview Experience for SDE Internship (On-Campus) 2022
Round 1: Online Assessment 1: Platform: Mettl. Sections contained: DSA, CN, DBMS, Software development concepts, and 1 coding question. Verdict: cleared this round and received mail after a few days. Round 2: Online Assessment 2: Platform: Hackerrank 2 LC medium coding questions. ( 1 was from the array and 1 was from a string) was able to solve bot
1 min read
Amazon SDE Interview Experience | On Campus 2019
Round 1: The round 1 was an online coding round. There were 2 coding questions and 28 technical mcq's to solved in 90 minutes. My coding questions were:- There are n baskets containing apples. Input consists of a given array which represents number of apples in each basket. Find the minimum number of apples to be moved in order to make no. of apple
5 min read
Amazon Interview Experience | SDE-1 On-Campus
Round 1: There were 2 coding questions 28 mcq. Ques1: find inversion count Ques2: find the longest common subsequence(LCS) MCQs were related to coding only. The platform for this round was 'mettl'. Don't go for recursive codes on this platform. Round 2: There were 2 coding questions in this round. Ques1: Two numbers 'a' and 'b' are given. Find the
3 min read
Amazon Interview Experience | SDE On-Campus
Date: (11th August,2019) Round 1: Round 1 consisted of 2 coding questions and 28 MCQs. The first question was given a single dimension array and 2 dimensions of a 2D array, convert the given single dimension array into the 2D array of the given dimension(it was given that it will always be possible to convert the 1D array to 2D array of given dimen
2 min read
Amazon Interview Experience | On-Campus for SDE-1
First round was an online test consisting of 2 coding questions and 28 MCQ’s on mettl. Level of coding questions vary from easy to medium. Everyone had different coding questions. Few which I remember are: 1. Inversion count in array 2. Postfix evaluation (handle negative number also) 3. Mean median mode in array 4. Dice throw puzzle(DP) 5.Roots of
4 min read