i
Amazon
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
Clear (1)
I applied via Referral and was interviewed before Apr 2022. There were 4 interview rounds.
2 Medium difficulty level questions + situation-based questions on Amazon leadership principles are asked.
Print the boundary nodes of a tree.
Boundary nodes are the leftmost and rightmost nodes of each level of the tree and the leaf nodes that are not part of the subtree.
Traverse the tree in a clockwise direction and print the nodes as you encounter them.
Use recursion to traverse the tree and keep track of the level and whether the node is a left or right boundary node.
Hamming distance is the number of differing bits between two binary strings. Hamming weight is the number of 1s in a binary string.
Hamming distance is used in error detection and correction codes.
Hamming weight is also known as population count or popcount.
To calculate hamming distance, XOR two numbers and count the number of 1s in the result.
Example: Hamming distance between 1010 and 1110 is 1.
Example: Hamming weight
Singly and doubly linked lists are linear data structures used to store and manipulate data.
Singly linked lists use less memory than doubly linked lists
Doubly linked lists allow for traversal in both directions
Singly linked lists are faster for insertion and deletion at the beginning of the list
Doubly linked lists are faster for insertion and deletion in the middle of the list
Both have O(n) time complexity for searchin
Sorting algorithms include bubble sort, insertion sort, selection sort, quick sort, merge sort, etc. Merge sort has O(nlogn) time complexity.
Sorting algorithms are used to arrange data in a specific order.
Merge sort is a divide and conquer algorithm that divides the input array into two halves, sorts each half, and then merges the sorted halves.
The time complexity of merge sort is O(nlogn) because it divides the input ...
I applied via Campus Placement and was interviewed before Jun 2022. There were 3 interview rounds.
It was a mix of the following:
Short debugging-type questions from DSA.
2 DSA problems medium level
I applied via Referral and was interviewed before Dec 2022. There were 3 interview rounds.
DSA questions such as two sum
What people are saying about Amazon
Amazon interview questions for designations
posted on 25 Aug 2017
I was interviewed before Aug 2016.
To print the kth last node in inorder traversal of a Binary Search Tree, we can use a modified inorder traversal algorithm.
Perform an inorder traversal of the BST, keeping track of the nodes visited in a stack.
Once the traversal is complete, pop k elements from the stack to get the kth last node.
Print the value of the kth last node.
Swap kth node with kth last node in a singly-linked, non-circular linked list.
Traverse the linked list to find its length or use two pointers to find kth and kth last nodes.
Swap the nodes and update the pointers accordingly.
Handle edge cases such as k being out of bounds or kth and kth last nodes being the same.
Consider using recursion to traverse the linked list.
Given two linked lists representing long integers, perform addition operation.
Traverse both linked lists simultaneously, starting from the head.
Perform addition of corresponding digits and keep track of carry.
Create a new linked list to store the result.
Handle cases where one list is longer than the other.
Handle the final carry if any.
Add two long numbers and store the result in a third linked list.
Create a linked list to store the result
Traverse both input linked lists simultaneously, adding corresponding digits
Handle carry over from addition
If one linked list is longer than the other, handle remaining digits
Return the resulting linked list
Get interview-ready with Top Amazon Interview Questions
Some of the top questions asked at the Amazon Software Development Engineer Intern interview -
The duration of Amazon Software Development Engineer Intern interview process can vary, but typically it takes about 2-4 weeks to complete.
based on 26 interviews
3 Interview rounds
based on 36 reviews
Rating in categories
Customer Service Associate
4.2k
salaries
| ₹0 L/yr - ₹0 L/yr |
Transaction Risk Investigator
3.1k
salaries
| ₹0 L/yr - ₹0 L/yr |
Associate
2.9k
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Associate
2.5k
salaries
| ₹0 L/yr - ₹0 L/yr |
Program Manager
2.1k
salaries
| ₹0 L/yr - ₹0 L/yr |
Flipkart
TCS
Netflix