Tip 1 : Practice coding
Tip 2 : Try to write attractive resume
Tip 3 : Don't follow others blindly
Tip 1 : Don't lie on resume
Tip 2 : Write in one page with important details
First question was to find the first non-repeating character. Then, the next question about finding the minimum coins.
Then, the next round was again DS/Algo






We had lot of discussion around the solution for the first problem and it took more than an hour.
And, that's the end of this round as well.



A move may be from parent to child or from child to parent.
Given ‘ROOT’ = [2,-1,0,-1,-1]
The tree would look like this :

The answer would be 1, because the root node will transfer 1 coin to its right child. Thus both nodes have the same number of coins now.



1. Room 0 is the only room that is initially unlocked and doesn’t require any key to enter.
2. Any other room can be visited only if you have the key to that room.
3. More than one room can have keys to the same room.
4. You are allowed to visit rooms in any order.
5. You can visit any room multiple times.

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?