Tip 1 : Solve 3-4 Leet code questions daily
Tip 2 : Practice advanced Algorithms Graph and shortest path
Tip 3 : Put timer for each question while practice
Tip 1 : Should show projects/ industrial experience
Tip 2 : Should show competitive programming skills
This was a screening round. It started around 10 AM in the morning.
We were provided a sheet of question paper with two questions on that.
We were expected to write the production ready code for both of them.
After we were done with writing the answers they were evaluated. And based on evaluation people were sent home or sent for next round of interview.



In the below map of Ninjaland let say you want to go from S=1 to T=8, the shortest path is (1, 3, 8). You can also go from S=1 to T=8 via (1, 2, 5, 8) or (1, 4, 6, 7, 8) but these paths are not shortest.

Used Bellman-Ford Algorithm to find the shortest path.



The minimum time in 24-hour format is 00:00, and the maximum is 23:59. If a valid time cannot be formed then return -1.
We have an array ARR = {1, 2, 3, 4} so the maximum time that will be formed will be 23:41.
1. Find all the permutations of the provided 4 digits.
2. Check if it valid - (It is in 24hrs format)
3. Maintain a max time which will be updated post each valid permutation.
It started in the afternoon. Two of my interviewers came to me while I was waiting after passing my first round. They took me into a meeting room. Where they first introduced themselves and asked me some behavioural questions and then I was given a coding problem to solve on white board and then write the production ready code for the same



Input: ‘arr’ = [1, 1, 2] and ‘k’ = 2
Output: 2
Explanation: If we want to make two subarrays, there are two possibilities: [[1], [1, 2]] and [[1, 1], [2]]. We can see that the maximum sum of any subarray is minimized in the second case. Hence, the answer is 2, which is the maximum sum of any subarray in [[1, 1], [2]].
Keep dividing the array from start index and maintain max for left sub-array and min for right sub-array.
If at any point we find that the max of left sub-array is less than the min of the right sub-array. then that index is the result index which will surely divide our array into two parts such that every element in the right sub-array strictly greater than every element in left sub-array.

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?