Tip 1 : Do a good project
Tip 2 : Know CS fundamentals
Tip 3 : Should be good at coding the solution discussed
Tip 1 : Mention things are regarded in the Industry like GSOC, ICPC, etc.
Tip 2 : Should mention the projects
Typical DS/Algo question



Can you solve each query in O(logN) ?
I found the pivot using binary search at which array is rotated.
Then performed two binary searches. First one in the left of pivot and second one in the right of pivot.



For the given binary tree: [1, 2, 3, -1, -1, 4, 5, -1, -1, -1, -1]
Start Node: 3
1
/ \
2 3
/ \
4 5
Output: 2
Explanation :
In the zeroth minute, Node 3 will start to burn.
After one minute, Nodes (1, 4, 5) that are adjacent to 3 will burn completely.
After two minutes, the only remaining Node 2 will be burnt and there will be no nodes remaining in the binary tree.
So, the whole tree will burn in 2 minutes.
Try converting it to a graph and then appling BFS starting from the target element
Interviewer said not to use extra memory.
Then I used two DFS to answer the question. First DFS to reach the target and get answer uptill root. the second DFS to get answer from nodes computed in first DFS.
Timing was in the evening 5 to 6.
Interviewer was very nice and friendly.
Interview was more like a discussion.
Asked me about one of my college project. It was an exam portal. Interviewer asked me about the database choice, schema design and backend tech used for the service.
He then asked to make changes to it support more scale.
Interviewer asked some basic questions on processes and threads.
Interviewer asked me explain database transactions

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?