Tip 1 : Practice atleast 250 problems from leetcode and Geeksforgeeks
Tip 2 : Communication should be fluent. They just check your problem solving capability, the thought processing. Even if your thought(idea) to solve the problem is correct, and if you cannot solve the problem, they still accept you.
Tip 3 : Dont loose your confidence in the interview if you are stuck somewhere in the problem, the interviewer will be friendly and will help us in getting out from the problem.
Tip 1 : Keep your Resume and don't use colors in your resume. Keep it up to date.
Tip 2 : Any unwanted information on the resume leaves a bad impact on the interviewer.
Tip 3 : Projects play a important role. Maintain good projects in your resume this will help you out in even getting shortlisted.
This round consists of 30 mcqs and 2 coding questions where switching can be done from one section to another another section. We can write at any time from 5pm to 9pm in the evening.


If the given matrix is:
[ [1, 2, 5],
[3, 4, 9],
[6, 7, 10]]
We have to find the position of 4. We will return {1,1} since A[1][1] = 4.



The interview was held in Amazon Chime. At 2pm the interview was scheduled. The interviewer was very friendly. I had a friendly environment. Even if i am stuck somewhere, the interviewer helped me comming out of that.



1. push(data) :
This function should take one argument of type integer. It pushes the element into the stack and returns nothing.
2. pop() :
It pops the element from the top of the stack and returns nothing.
3. top() :
It returns the element being kept at the top of the stack.
4. getMin() :
It returns the smallest element present in the stack.
Query-1(Denoted by an integer 1): Pushes integer data to the stack. (push function)
Query-2(Denoted by an integer 2): Pops the data kept at the top of the stack. (pop function)
Query-3(Denoted by an integer 3): Fetches and returns the data being kept at the top of the stack. (top function)
Query-4(Denoted by an integer 4): Returns the smallest element present in the stack. (getMin() function)



The interview was held in Amazon Chime. At 10am the interview was scheduled. The interviewer was very friendly. I had a friendly environment. Even if i am stuck somewhere, the interviewer helped me comming out of that.



1. If ‘k’ is not present in the array, then the first and the last occurrence will be -1.
2. 'arr' may contain duplicate elements.
Input: 'arr' = [0,1,1,5] , 'k' = 1
Output: 1 2
Explanation:
If 'arr' = [0, 1, 1, 5] and 'k' = 1, then the first and last occurrence of 1 will be 1(0 - indexed) and 2.



Try to solve the problem in 'Single Scan'. ' Single Scan' refers to iterating over the array/list just once or to put it in other words, you will be visiting each element in the array/list just once.

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?