Tip 1: The key thing that played a major role in getting the internship was practicing problems daily on various coding platforms. One should prioritize solving Medium & Hard difficulty level problems.
Tip 2: Try to get really good at hierarchical Data Structures (Graphs, Trees) & various algorithms based on them, as they are commonly asked in big tech companies.
Tip 3: Should have at least 2 projects and it would be a plus if that project has some application in real life, but it's not necessary. And the biggest tip for getting placed into Amazon would be - 'Be familiar with Amazon Leadership Principle'. There are 14 Amazon LP in total and they can be found easily online.
Tip 1: Do not lie about anything on your resume
Tip 2: Just keep it clean and elegant, E.g. as it would not make an impact if you won some competition at the school level (It would just consume the precious space)
Tip 3: Mention the projects that you have worked on along with the tools & technologies
Four parts were there in the Amcat Test.
The first part was the code debugging round.
The second part consisted of two medium difficulty level problems.
The third part was based on Amazon LP.
The fourth part consisted of basic aptitude questions.


Consider the following matrix :
0 1 1
0 1 0
1 1 0
You can see that row 1 (0-based) contains all 0’s except mat[1][1] and column 1 contains all 1’s. Hence the answer for the above case is 1.




This interview consisted of 2 technical problems and some behavioral questions. This interview was taken by an SDE-3.



The ‘DICTIONARY[]’ contains only distinct strings.
The second question was a mixture of OOP and Problem Solving. You are provided with a function that has two parameters Object of a class LIST and an integer 'k.' The LIST class has an endpoint valAtIndex() that can be used to access the value at the index provided and it returns IndexOutOfBoundException if the index is greater than the size of the length of the LIST. LIST class uses some DS to store integers internally. You do not know the size of the LIST. So we have to check whether the integer k is present in the LIST or not (Return 1 or 0.) The LIST stores the elements in sorted order.
This round consisted of some behavioral questions and 2 technical problems. This round was conducted by and SDE-2.



A doubly linked list is a type of linked list that is bidirectional, that is, it can be traversed in both directions, forward and backward.
If the number of nodes in the list or in the last group is less than K, just reverse the remaining nodes.
Linked list: 8 9 10 11 12
K: 3
Output: 10 9 8 12 11
We reverse the first K (3) nodes. Now, since the number of nodes remaining in the list (2) is less than K, we just reverse the remaining nodes (11 and 12).



1. The value of any node will not be equal to zero.
2. Subtree of a node X is all the nodes that are below X and X itself.
3. For example in the tree given below, nodes 1, 2 and 3 are in subtree of 1.

4. Subtree sum of X is the sum value of all the nodes in subtree of X.
5. Binary tree is a tree wherein each node has at most two children.
6. Any two nodes may have the same value associated with it.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?