Tip 1 : Only mention courses and topics in your Resume you are confident in and it would be better if you revise OOPS, DBMS.
Tip 2 : Explain your project in STAR format and also read about the leadership qualities.
Tip 3 : Before the interview try to check important topics or things specific to the company. Like trees and Linked list are important topics for Amazon
Tip 1 : Only mention courses, topics and projects in your Resume you are confident in.
Tip 2 : Do unique projects in the area which you want to apply to.
Tip 3 : Keep updating your resume according to the role you are applying to
Step 1 : sort boxTypes so that boxes with the most units appear first.
Step 2 : Iterate through the boxes in sorted order.
Step 3 : Instead of counting down one by one how many boxes to take, we can calculate how many boxes of the current type to take by taking min(truckSize, numberOfBoxes). This is because the truck can fit at most truckSize more boxes, but we have numberOfBoxes left.
Step 1 : Create a descending order map, and insert first k elements. our map's first element will;point to the greatest element in the map.
Step 2 : In the second for loop, as its a sliding window, I'm removing the first elem(
a[k-i]) and adding the current upcoming elem (a[i]) into the window.
Step 3 : for that I'm decreasing the element's frequency in the map. also note that decreasi...
This was another section of Work Life assessment. Each question had a slider which was in the middle at the start, we had to move it either way which we think is most appropriate according to us.
Both sides have different viewpoints and two options most likely and more likely.
ViewPoint 1 ----------------------------------------------------------------------- ViewPoint 2
<-----Most ...
Tip 1: These questions should be explained according to Amazon's Leadership principles
It had 24 questions. You cannot navigate( move back and forth) in questions. Time is the key here, the questions were really basic and easy, encoding-decoding questions, some paragraph based questions, series based questions
Step 1 : Initially, I gave the naive approach of traversing the tree in Inorder and while traversing, keep track of the count of the nodes visited. If the count becomes k, print the node and end the program. Complexity of this code is O(n) time and O(h) auxiliary space which I explained too and further asked if it is required to improve before starting to implement it.
Step 2 : Then I was as...
Step 1 : Initially, I explained an array-based approach similar to this one:Method 3 of https://www.geeksforgeeks.org/given-a-string-find-its-first-non-repeating-character/
So each time the find answer function is called we will have to traverse the fi[256] array each time to return the answer.
Step 2 : Then he asked me to try a different approach for a situation in which the Find A...
1, if the character is an uppercase alphabet (A - Z)
0, if ...
Step 1 : I gave the recursive approach, he told me to code.
Step 2 : After that he told me to dry run the approach for {a,b,c}, i tried to make the recursion tree on the editor but it was all messy after a few steps. He then shared a whiteboard link for that, it was taking lot of time doing there so finally he shared his whatsapp and told to do it on paper and send him the image, around 35 m...
Step 1 : I had solved this question before and after some time told him the O(n) approach. He told me to code. I did so explaining each step along. I had two nested for loops in the code, so he inquired about how the approach is linear in time.
Step 2 : We had some discussion on the code and I had to explain some parts to him again. He suggested some changes too. I deleted 4-5 lines fo...
why was u use recursive approch in Find Character Case, if u can solve it by iterative approch.