The Wayback Machine - https://web.archive.org/web/20241126201259/https://www.geeksforgeeks.org/amazon-interview-experience-set-376-campus-internship/
Open In App

Amazon Interview Experience | Set 376 (On Campus for Internship)

Last Updated : 11 Jul, 2019
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Amazon visited our campus(Jadavpur University) to recruit interns and FTEs. I’m sharing my internship interview experience.
There were 3 rounds in all – 1 Online Round followed by 2 F2F Interviews.
Online Round(90 min on Hackerearth):

There were 20 questions mostly based on C, C++, DS, Reasoning and a few from OS, OOPS, DBMS etc and 2 coding questions.
The 2 coding questions were:

  1. Find the maximum sum of lengths of non-overlapping contiguous subarrays with k as the maximum element.
    Ex: Array: {2,1,4,9,2,3,8,3,4} and k = 4
    Ans: 5
    {2,1,4} => Length = 3
    {3,4} => Length = 2
    So, 3 + 2 = 5 is the answer
    

    Solution: GeeksforGeeks Link

  2. You are given an array A where A[i] (1-based indexing) denotes the number of chocolates corresponding to each station. When we move from station i to station i+1 we get A[i] – A[i+1] chocolates for free. Note that if this number is negative, we lose that many chocolates. We can only move from station i to station i+1 and that too if and only if we have non-negative number of chocolates with us. Given that cost of one chocolate is Rs. P , our task is to find the minimum cost incurred in reaching station n from the first station (station 1).
    Ex: A: {1,2,3} and P = 10 Ans: 30
    To reach station 1 from the starting station, we need to buy 1 chocolate.To reach station 2 form station 1, we get A[1] – A[2] = -1 chocolates i.e. we lose 1 chocolate. Hence, we need to buy 1 chocolate.Similarly, we need to buy 1 chocolate to reach station 3 from station 2.Hence, total cost incurred = (1+1+1)*10 = 30.
    

    Solution: GeeksforGeeks Link

Out of around 150 students, 26 were shortlisted for Round 2.

-> In the 1st question those who used cin/cout instead of printf/scanf got TLE in 20% of test cases.

->In the 2nd question not a single test case was passed on using int instead of long long int. I wasted about 40 mins on this.

->Doing MCQ was important. Few students who solved both the coding question but didn’t attempt the MCQs were not selected while some who could solve 80% of 1 question(8/10 test cases) and few MCQs were selected.

Round 2: FTF Interview (Around 30 mins):

  1. The interviewer told me to introduce myself.
  2. Count all nodes at distance k from a given node in a binary tree. It’s very similar to Print nodes at k distance from a given node .
    Suddenly he went out of the room and came after about 20 mins.By that time I came up with the O(n) solution, I explained it to him with a pseudo code.
  3. Then, he asked me if I had any questions for him.

Round 3: FTF Interview (Around 45 minutes):

First, the interviewer told me to introduce myself and then asked me the question asked in the 1st round. Then, she asked me about threading.I told her that I haven’t studied JAVA well. Thereafter she didn’t ask anything related to JAVA.

  1. Search in row and column wise matrix I started with an O(RlogC) ssolution,she told me to optimize it , after some time I finally gave the O(R+C) solution.She asked me to write the code.
  2. A stream of integers are coming you need to keep the track of minimum at any time, which DS would you use? I told her that I’ll simply store the numbers in a vector and keep a variable min and update min whenever required. Then she told me what if you need to find Kth minimum. I told her to explain the question again , then she asked Kth largest or smallest element in an array. We discussed various approach. She asked me to code the Max-heap approach(use of STL was allowed).Then she asked me various questions about heap.
  3. How to represent heap efficiently? I told her the array representation, then she asked me to explain the one using pointers. After that, she asked me which one is better and why? I listed various reasons one of which was that array is cache friendly, she asked me to elaborate this.She also asked me few questions on cache.
  4. She asked me to explain heap sort in detail.
    GeeksforGeeks Link
    We discussed it for about 5 min covering everything in detail. Code was not required.
  5. Connect N ropes with minimum costInitially my approach was wrong, she showed a case where it failed . After some time i told her O(N*N) approach which was correct, she asked me to optimize it and told me to think of some DS which i can use.Finally, I came up with the solution using heap, she asked me to code it.

Finally, she asked if I had any questions for her. My experience of this round was very good, the interviewer was very helpful and friendly.

Out of the 26 selected for the interviews, 13 were finally selected for internship.

During my preparation geeksforgeeks, indeed, was a great help. Almost all questions asked in the interview were from geeks. A big thank you to other geeks as well for sharing their interview experiences as going through past experiences was the perfect way to end my preparations.



Previous Article
Next Article

Similar Reads

Amazon interview Experience | Set 416 (On Campus for Internship)
Coding Round There were 2 coding questions (10 marks each) and 20 MCQ’s from various core concepts ( OS,DS,Algorithms,DB,C language etc ). Question 1 : https://www.geeksforgeeks.org/given-a-string-print-all-possible-palindromic-partition/ Given a string, find all possible palindromic partitions of given string. Question 2 : You are given with a lar
4 min read
Amazon Interview Experience | Set 367 (On-Campus for Internship)
1st ROUND(Online Round :90 min) There were 20 aptitude questions based on C, DS, OS, OOPS, and 2 coding questions. Coding Questions: Find nth Magic Number Count triplets with sum smaller than a given value Since coding questions were easy those who completed both coding questions and some aptitude questions were selected. Total 19 students were sel
2 min read
Amazon Interview Experience | Set 370 (On Campus for Internship)
Round 1: Online Round(90 minutes) There were 20 MCQs and two coding questions. MCQs were mostly logical reasoning, running time and DS/Algo. There were also 2-3 OS, 2-3 DBMS and 1 networking MCQ. 2 coding questions- Magic numbers are defined as either powers of 5, or sum of unique powers of 5. Find nth magic number. Eg: 5,25,30,125,130 etc. Solutio
3 min read
Amazon Interview Experience | Set 375 (On Campus for Internship)
Recently, Amazon visited our campus to recruit interns and FTEs. There were 3 rounds in all - 1 Online Round followed by 2 F2F Interviews Round 1: Online Round (90 minutes) There were 2 coding questions and 20 MCQs mostly on Time Complexities (Master Theorem), Logical Reasoning, Data Structures and Algorithms, around 2 from OS, DBMS and Networking
3 min read
Amazon interview experience | Set 383 (On-Campus for Internship)
Amazon visited our campus for internship and placement. The Selection Process starts with an online test comprises of 20 technical questions involving data structures,operating system basic concepts,algorithms and aptitude questions and two coding questions. First Round Questions Given an array find all sets of size 3 having sum of elements less th
1 min read
Amazon Interview Experience | Set 386 (On Campus for Internship)
The first round was an online round. There were 2 coding questions and 20 MCQs. The MCQs consisted of both aptitude questions as well as technical questions. The students who did both the coding questions and half of the MCQs were chosen for the interview round. 25 students out of 200 students who gave the online round were selected. The first roun
2 min read
Amazon Interview Experience | Set 392 (On Campus for Internship)
Online Coding Round: The first round was an online round. There were 2 coding questions (no penalty for wrong submission) and 20 Multiple Choice Questions(with negative marking). We were given 90 minutes to solve them. MCQs were based on Data Structures, OS, CN, C outputs, OOP, etc. The two coding questions were: Given a string you have to partitio
3 min read
Amazon Interview Experience | Set 395 (On-campus for Internship)
Round 1: Total of 300 students participated in the notion of getting selected to do intern at Amazon. Round 1 had 20 MCQs and 2 questions. Given a range [L,R] find the count of numbers having prime number of set bits in their binary representation. [This hint was included in O/P section. Only even numbers should be checked within the L,R range] Gee
4 min read
Amazon Interview Experience | Set 406 (Off-Campus Internship)
Round 1: The first round consists 20 mcqs and 2 coding questions. The MCQ's are focused mainly on Operating systems, data structures and algorithm analysis and DBMS. each question consists +1 and -0.25 for the wrong answer  Round 2:(TECHNICAL ROUND 1) It started with the self introduction and brief chat about Vizag(interview held in Vizag). He is s
2 min read
Amazon Interview Experience | Set 410 (On-Campus Internship)
Online Round: It consists of 20 MCQs and two coding questions and MCQs got the negative marking . One for the correct answer and -0.25 for each wrong answer. Given a string. Find all the palindromic partitions of the string. (Number of way the string can be partitioned so that all the partitions are palindrome) ( Case–Insensitive ) Examples: Input
3 min read
Amazon Interview Experience | Set 149 (On-Campus for Internship)
Round 1 (Online): It had 20 MCQs and 2 coding questions for 90 minutes. Questions were from Operating Systems, Data structures, Aptitude etc. Most of them were exactly same as on https://www.geeksforgeeks.org/.  In MCQs there was – 0.25 marking for every wrong answer and +1 for right answer. Coding questions were of 10 marks each. Coding Questions:
3 min read
Amazon Interview Experience | Set 198 (On-Campus for Internship)
Hello friends, Amazon recently visited our campus hiring for SDE. They are usually the first or second company to visit our campus, which gives little time for preparation. so better prepare yourself in summer vacations (read g4g). I had great fun preparing for the Amazon, and really enjoyed myself through the interview process. The process spanned
3 min read
Amazon Interview Experience | Set 199 (On-Campus for Internship)
Recently, Amazon visited our campus. Here is my Interview Experience: Online Round: (Duration – 90 minutes) 20 MCQs and 2 coding questions. MCQs were on Algorithms, Time Complexity, Quantitative Aptitude, Probability, Operating Systems, Graphs, Data Structures, Recursion outputs etc. Coding Questions: 1. In one of Amazon fulfilment centres, there a
3 min read
Amazon Interview Experience | Set 204 (On-Campus for Internship)
Cut off: 75%. Around 140 students were shortlisted. Round 1 (Written Test) 90 minutes It comprised of aptitude, operating system, complexity, hashing ,graph, and complexity related questions (20 questions). There were two coding questions 1. Given a string find the first non-repeating character in it 2. Given an array of integers delete the minimum
4 min read
Amazon Interview Experience | Set 205 (On-Campus for Internship)
Cut off: 75%. Around 140 students were short listed. Round 1: 90 minutes It comprised of 20 MCQs on aptitude, operating system, DBMS, data structures and algorithms on Hackerrank. There were two coding questions 1. Given a string find the first non repeating character in it, O(n) was good enough. 2. Given an array of integers, find count of minimum
2 min read
Amazon Interview Experience | Set 207 (On-Campus for Internship)
Cut off: 75%. Around 140 students were short listed. Round 1: 90 minutes It comprised of 20 MCQs on aptitude, operating system, DBMS, data structures and algorithms on Hackerrank. There were two coding questions 1. Given a string find the first non repeating character in it, O(n) was good enough. 2. Given an array of integers, find count of minimum
2 min read
Amazon Interview Experience | Set 208 (On-Campus for Internship)
Amazon visited our campus for hiring Software Developer interns for Summer 2016. Cut-Off : 75% 140 students were shortlisted. Round 1 (Coding + Aptitude): First round mostly comprised of problems on OS, DS, Basic Aptitude, Algorithms etc. 2 coding questions 1. Given a string find the first non repeating character in it 2. Given an array of integers
2 min read
Amazon Interview Experience | Set 211 (On-Campus for Internship)
Amazon visited our campus for hiring Software Developer interns for Summer 2016. All CS and IT students were eligible. Round 1 (Coding + Aptitude): First round comprised of problems on OS, DS, Basic Aptitude, Algorithms, Time Complexity etc. followed by 2 coding questions on HackerRank platform 1. Find the nth Magic Number where a Magic Number is e
3 min read
Amazon Interview Experience | Set 227 (On-Campus for Internship and Full-Time)
This year our college kicked off placement season with the Amazon. We got the job description(JD) before the placement process. We got good news that Amazon have increased total CTC. With this good news it also added tension and pressure. Day 1: Coding and aptitude round Coding round was at 5pm so from morning I had revised very basic things like s
6 min read
Amazon Interview Experience | Set 228 (On-Campus for Internship)
Amazon came to our campus a week back and procedure was as follows: Round-1- 20 easy MCQ 2 coding questions: (a)- Find next greater number with same set of digits -->even brute force solution is working. (b)-Evaluation of post fix expression. Note - Only fight for solving atleast one coding question.If you have not done any coding question then
3 min read
Amazon Interview Experience | Set 265 (On-Campus Internship)
Amazon recently visited our campus for hiring interns for 6 month internship. Round 1: Online Test The round-1 was an online test of 90 minutes. It was hosted on HackerRank platform. There were 20 MCQ questions and 2 coding questions. MCQ questions were of 1 mark each. There was a negative marking of 0.25 for each wrong MCQ answer. The MCQ question
5 min read
Amazon Interview Experience | Set 277 (On-Campus for Internship)
Recently Amazon visited our campus for interns and placements. For interns it consisted of 1 online + 2 technical rounds. Online:(90 mins) 20 MCQ'S based mainly on sorting, OS,Networks 2 coding questions: 1. Given a number find the next greatest number formed with same digits 2. Find the largest increasing sequence in an array Round 1:(40 mins) The
1 min read
Amazon Interview Experience | Set 279 (On-Campus for Internship)
Recently Amazon visited our campus. There were total three rounds. First round was an online coding round conducted on Hackerrank, It consisted of 20 Mcqs based on Data Structures,Sorting Techniques,Operating systems,Networking and some aptitude questions along with 2 coding questions, The questions were: 1. Sort a linked list which consists of onl
2 min read
Amazon Interview Experience | Set 289 (On-Campus for Internship)
Amazon was the first company to visit our university this year. They have taken 3 rounds for selecting students for internship program. 1. Online coding round : This was as usual. 2 coding questions and 20 MCQs. MCQs were from probability, permutation, output, tree, DBMS and OS. Coding questions were easy. The first one was finding-next-greater-ele
4 min read
Amazon Interview Experience | Set 290 (On-Campus for Internship)
Recently, Amazon visited our campus and as a matter of fact it was the first to visit. They took 3 rounds to select interns. 1st round - Online test There were 20 MCQs, which included questions from C, C++, Java(Multi Threading) and few aptitude questions. Then, there were 2 coding questions- 1)https://www.geeksforgeeks.org/lexicographically-minimu
2 min read
Amazon Interview Experience | Set 292 (On-Campus for Internship)
Amazon came to our campus for hiring interns.At first there was a coding round then 2 personal interviews Coding round: There was 20 mcq questions based on DS , OS , IQ and output questions And there were 2 coding questions Given a string print the lexographically smallest possible rotation of the string. (N square sol. Passed) Balanced parenthesis
2 min read
Amazon Interview Experience | Set 296 (On Campus for Internship)
Online round (1 hour 30 min) 20 MCQs + 2 coding questions- 1) Given an expression string exp, write a program to examine whether the pairs and the orders of "(" and ")" are correct in syntax 2) Given preorder and inorder traversal of a binary tree, print preoder and inorder of the tree after modifying it such that each node stores the sum of its le
2 min read
Amazon Interview Experience | Set 299 (On-Campus for Internship)
AMAZON came to our college for both FTE's and two month summer interns. The First Round was an Online Coding Round along with MCQ's.Remember to attempt some MCQ's correctly in order to improve your chances in getting through this round as the Coding questions may not be very difficult. Q1. Find the next greatest number using digits for a given numb
3 min read
Amazon Interview Experience | Set 300 (On-Campus for Internship)
1. Written Round 20 MCQ from simple data structures, Networking, DBMS and some maths. 2 coding questions. A) Interval merging problem. B) Finding the diameter and printing the path of a binary tree from one end to other. If there are more than one diameter then print the one which is lexicographical small. 2. Technical Interview 1 A) Discussed the
2 min read
Amazon Interview Experience | Set 301(On-Campus for Internship+ FTE)
Round 0: (Written): 20 MCQs + 2 Coding Questions: MCQs - Topics: OS - Page fault, Waiting time (RR Scheduling), Paging, Semaphores, etc. DS – Hashing (simple chaining based numerical) Aptitude – 1 Probability question, Puzzle – 1 question, C– 2 questions, etc. Coding Questions: Given a list of n strings group all anagrams together Example: i/p: cat
3 min read
Practice Tags :
three90RightbarBannerImg