Tip 1 : Practice questions regularly
Tip 2 : Take company specific problems
Tip 1 : Add 2-3 good quality projects
Tip 2 : Single-page resume with all project links, profile links, and internship experience mentioned.
The interviewer didn't explain the problem very well and didn't provide any hints. I had to take an example on my own.



Input: ‘R’ = 3, ‘C’ = 4
‘GRID’ = [[2, 3, 1, 2], [3, 4, 2, 2], [5, 6, 3, 5]]
Output: 21
Initially Alice is at the position (0,0) he can follow the path (0,0) -> (1,1) -> (2,1) and will collect 2 + 4 + 6 = 12 chocolates.
Initially Bob is at the position (0, 3) and he can follow the path (0, 3) -> (1,3) -> (2, 3) and will colllect 2 + 2 + 5 = 9 chocolates.
Hence the total number of chocolates collected will be 12 + 9 = 21. there is no other possible way to collect a greater number of chocolates than 21.
The interviewer was helpful.



If an interval ends at time T and another interval starts at the same time, they are not considered overlapping intervals.
Step 1 : I kept 2 counters i = 0 (for 1st process), j = 0 (for 2nd process)
Step 2 : Added the storage for both and added the process which ends first

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?