Amazon Interview | Set 2 (original) (raw)
Last Updated : 23 Jul, 2025
Please find the details of my amazon interviews below.
**Date of Interviews: 26th July 2012
**No of Rounds: 1 online exam + 4 PI
**Type of Interviews: Campus Interview for freshers
**Online test(Time): 90 Minutes
_20 Objective Questions: Aptitude and basic C objective problems.
_2 Subjective Questions:
II. Parenthesis checker.
**Interview Round 1(30-40 Minutes):
Technical Interview
**Question 1: You are given a linked list and a parameter k. You will have to swap values in a certain fashion, swap value of node 1 with node k, then node (k+1) with node 2k and go on doing this in the similar fashion
**Question 2: For the above question, do it without swapping the values. If you want a swap to occur between two nodes, then you will have to move the nodes itself.
**Interview Round 2(50-60 Minutes):
Technical Interview
**Question 1:
You are given many slabs each with a length and a breadth. A slab i can be put on slab j if both dimensions of i are less than that of j. In this similar manner, you can keep on putting slabs on each other. Find the maximum stack possible which you can create out of the given slabs.
**Question 2: The above question was raised to 3 dimensions.
**Question 3: The above question was then raised to k dimensions.
**Questions : Then there were many questions asked on compilers and dynamic memory allocation.
**Interview Round 3(50-60 Minutes):
Technical Interview
**Question 2: Find the longest increasing subsequence in O(nlogn). Proof and full code was required.
**Question 3: You are given a linked list and an integer k. Reverse every consecutive k nodes of the given linked list.
**Interview Round 4:
The team was highly impressed so they cancelled my 4th round :P for others who appeared for the 4th round, it was atleast an hour long.
**HIRED!! :)
This article is compiled by **Jinendra Baid. Many Many congratulations to Jinendra for his selection in Amazaon.
All Practice Problems for Amazon ****!**