Tip 1 : Practice as much you can
Tip 2 : Study Data Structures
Tip 3 : Be confident
Tip 1 : Mention only what you are confident about
Tip 2 : Mention tools & technologies used in the project as well
Timing : Evening






For the given binary tree, and X = 3:

Timing : 10:00 pm




All the possible root to leaf paths are:
3, 4, -2, 4 with sum 9
5, 3, 4 with sum 12
6, 3, 4 with sum 13
Here, the maximum sum is 13. Thus, the output path will be 6, 3, 4.
There will be only 1 path with max sum.
Timimg : 11:00 pm



Let 'N' = 4
Then in the first round, all bulbs are on.
In the second round bulbs, 2 and 4 are turned off.
In the third round bulb, 3 is turned off.
In the fourth round bulb, 4 is turned on.
So at the end of 'N' (4) round, only the bulb 1 and 4 is on, so there are 2 good bulbs.

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?