Tip 1: Keep practicing questions on a daily basis. Once you get into the flow, you will be able to solve any question. Try to maintain a daily streak on online coding platforms.
Tip 2: Prepare for the machine coding and system design rounds by reading at least one article a day.
Tip 1: Mention only the skills you are confident about.
Tip 2: You should have at least one good project in which you have in-depth knowledge.




I have practiced this problem so many times that I was able to solve it easily.
I was first asked to introduce myself and share my past experience. The interviewer was helpful and guided me in reaching the final solution.



The distance is calculated as |i1 – i2| + |j1 – j2|, where i1, j1 are the coordinates of the current cell and i2, j2 are the coordinates of the nearest cell having value 1.
You can only move in four directions which are : Up, Down, Left and Right.
If N = 3, M = 4
and mat[ ][ ] = { 0, 0, 0, 1,
0, 0, 1, 1,
0, 1, 1, 0 }
then the output matrix will be
3 2 1 0
2 1 0 0
1 0 0 1
I first tried to determine which algorithm would be used to solve this question. After that, it was easier to solve.



A subarray is a slice from a contiguous array (i.e., occupy consecutive positions) and inherently maintains the order of elements.
This was a hard problem, but with the help of the interviewer and by identifying the correct data structure, I was able to solve it.
This was the managerial round. The manager was amazing. He asked me what I knew about Amazon and why I wanted to join it. I shared my personal experience of using Amazon and explained why I love it.
Tip 1: Read articles on system design to understand important terminologies.
Tip 2: Always present your answer in bullet points.
I was asked some behavioral questions, followed by a discussion about the offer.
Tip 1: Stay calm and confident while answering.

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?