Tip 1 : Start with brute force solution and then optimise the solution further
Tip 2 : Driving of design questions should be done by interviewee instead of interviewer
Tip 3 : Learn all technologies breadth and depth of any one project in your career which was most challenging.
Tip 1 : Keep it to one page
Tip 2 : Don't add address, fathers name, passport number and other details.


str = "ababc"
The longest palindromic substring of "ababc" is "aba", since "aba" is a palindrome and it is the longest substring of length 3 which is a palindrome.
There is another palindromic substring of length 3 is "bab". Since starting index of "aba" is less than "bab", so "aba" is the answer.
Step 1 : I approached with brute force solution which was not good.
Step 2 : Interviewer asked me to optimise the solution.
Step 3 : I gave a O(n2) solution using two indexes and interviewer was happy.


If two nodes have the same position, then the value of the node that is added first will be the value that is on the left side.
For the binary tree in the image below.

The vertical order traversal will be {2, 7, 5, 2, 6, 5, 11, 4, 9}.
Step 1 : Tool distance for root as 0, right edge as +1 horizontal distance and left edge as -1 horizontal distance.
Step 2 : Used HashMap to store the values and used the same to print.
Design scrapers and crawlers
Tip 1 : Understand the problem completely.
Tip 2 : Write the functional and non functional requirements
Hiring Manager round
1. Why Amazon?
2. Why leaving previous organisation?
3. Conflict with manager
4. Conflict with product
5. Conflict with peer
6. Innovation tried and outcome
7. Project related - describe the project and challenges faced in it.
Bar Raiser
1. Describe about your project and your contribution in it and technical challenges and how did you solve them.
2. Design Auction Bidding system.




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?