Tip 1 : Practice coding questions and participate in online contests.
Tip 2 : Communication skills are good to have for interviews.
Tip 1 : Do some good projects for your resume.
Tip 2 : Keep it concise and short.
Tip 3 : Don't lie on your resume.
Amazon Visited our campus, and they had put a cutoff of 7 CGPA based on which they shortlisted students. After 2 days all the shortlisted students received an online test link.
Online Assessment Test: The round had four sections.
Debugging: There was a total of 7 questions in which a piece of code was written and you had to find any error so that all the test cases can pass. All the questions were very easy.
Coding Section: There were two questions, one was based on a linked list and the other was a logical question based on hashing, I would say both the questions were of medium level. The time allotted was 70 mins total.
Behavioral Analysis: This section consisted of questions that focused on your personality and behavior.
Reasoning Ability: This section was based on aptitude and verbal ability. The difficulty level was easy.
The approach is very simple. Traverse both lists and One by one pick nodes of both lists and add the values. If the sum is more than 10 then make carry as 1 and reduce sum. If one list has more elements than the other then consider the remaining values of this list as 0.
The steps are:
1. Traverse the two linked lists from start to end
2. Add the two digits each from respective lin...
This problem can be solved efficiently by using the technique of hashing. Use a hash_map to check for the current array value x(let), if there exists a value target_sum-x which on adding to the former gives target_sum. This can be done in constant time. Let’s look at the following example.
arr[] = {0, -1, 2, -3, 1}
sum = -2
Now start traversing:
Step 1: For ‘0’ there is no valid...
The round began and first, the interviewer introduced himself and later asked me to introduce myself which I did. After that, he walked me through how the interview is going to proceed from there. He then gave me two coding questions, firstly you have to tell them your approach, and if they are satisfied enough or if your approach is the optimum approach then they will ask you to write that code in their code space which is not an editor btw.
After half an hour I got a call from HR that my interview is scheduled an hour later.
So, this was a binary search question and there was an easier version of this question in which you had to find only the integer which is closest to the square root of that number, so here you had to only change your code a bit, but the logic was a bit tricky to find, but eventually, I came up with the solution and then the interviewer was quite impressed. I also had to tell the time and space ...
For the given binary tree [1, 2,...
Initially, I thought that this was a tricky problem but I kept thinking out loud, and they were also able to see where and how was I thinking, later I came up with the solution and it was the optimum one, the interviewer again asked me to write how will you represent the generic tree, and then I wrote the code for the tree using a class, the interviewer was again happy to see that, later I wrot...
The round began with the interviewer’s introduction and then I introduced myself He gave me two questions based on data structures.
The interviewer was happy with all the answers. Then, since enough time was left, He asked me some HR questions, like what are strengths and weaknesses, etc.
After all this, he told me in the interview itself “See you soon and enjoy your day “, after which I was quite sure that I’m going to go to the next round. But this was the last one.
Tip 1 : Try to tell your approach continuously, as if you are stuck then the interviewer might give a hint.
Tip 2 : Be confident and speak what you think.
Tip 3 : Don't give up on the first try, try to come up with some solution. They see your approach.
1. A node will be in the bottom...
Tip 1 : Try to tell your approach continuously, as if you are stuck then the interviewer might give a hint.
Tip 2 : Be confident and speak what you think.
Tip 3 : Don't give up on the first try, try to come up with some solution. They see your approach.
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is the result of 4 % 2?