Round 1: An online assessment that consisted of four parts:
- Code Debugging: 7 questions to be debugged in 20 minutes. (easy-medium)
- Coding Test: 2 coding questions to be solved in 70 minutes. (medium)
- Workstyles assessment: 20minutes
- Reasoning ability: 35 minutes (easy-medium)
38 members were shortlisted for the interviews.
Round 2: It was a technical interview for 1 hour. The interviewer gave her an introduction and asked about me. Then I was given the following questions.
- https://www.geeksforgeeks.org/word-break-problem-dp-32/. Asked me to discuss the time and space complexity of my approach and then to code.
- https://www.geeksforgeeks.org/trapping-rain-water/. I was able to solve this easily and discussed the time and space complexity.
Around 12 members were shortlisted for TR-2
Round 3: It was a technical interview for 1 hour. After a brief introduction the interviewer asked the following question:
- Given a binary tree, return the sum of all the nodes whose Kth parent (Kth ancestor) value is even. Where 0 < K < 10^7.
Example:
K=2 8 / \ 2 3 / \ \ 4 5 7 \ / 6 1- The 2nd ancestor of 4 , 5 ,7 is 8 and 8 is even
- The 2nd ancestor of 6 is 2 and 2 is even
- The 2nd ancestor of 1 is 3 and 3 is odd
So the answer is 4 +5 +7+6= 22
First I gave an n^2 solution, and he asked to optimize it. Then I came up with a nlogn solution (for the balanced binary tree).
Finally, I wrote a code with linear time complexity using post-order traversal.
VERDICT: SELECTED
THANK YOU SO MUCH GFG TEAM…
Recommended Posts:
- Amazon Interview Experience (On-Campus) for SDE1 FTE/6M Intern
- MathWorks Interview Experience (EDG, Oncampus)
- ServiceNow Interview Experience Oncampus
- UHG Interview Experience | OnCampus- 2019
- InfoEdge Interview Experience | OnCampus-2019
- Amazon Interview Experience | Set 185 (For SDE1)
- Amazon interview Experience | Set 141 (For SDE1)
- Amazon Interview Experience | Set 150 (SDE1 for 1 Year Experienced)
- Amazon Interview Experience | Set 153 (For SDE1)
- Amazon Interview Experience | Set 184 (Off Campus for SDE1)
- Amazon Interview Experience | Set 186 (For SDE1)
- Amazon Interview Experience | Set 187 (For SDE1)
- Amazon Interview Experience | Set 188 (For SDE1)
- Amazon Interview Experience | 198 (For SDE1)
- Amazon Interview Experience | Set 213 (Off-Campus for SDE1)
- Amazon Interview Experience | Set 254 (Off-Campus for SDE1)
- Amazon Interview Experience | Set 256 (Written Test for SDE1)
- Amazon Interview Experience | Set 258 (For SDE1)
- Amazon Interview Experience | Set 259 (1 Yr Experienced for SDE1)
- Amazon Interview Experience | Set 261 (For SDE1)
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


