Tip 1 : Make a good resume
Tip 2 : Prepare DSA thoroughly
Tip 1 : Single pager
Tip 2 : Have good projects on your resume.
Asked a question based on Data Structures and Algorithms and had 45 mins to reach the optimal solution and also code it in google docs.



Input:
5 6
0 1 10
0 2 10
0 3 40
1 4 10
2 4 20
4 3 5
0 3 40

There are three ways to reach station ‘3’ from station ‘0’. The first path is 0->1->4->3, which will cost us 10+ 10+ 5= 25 and the second path 0->2->4->3 will cost us, 10+ 20+ 5 = 35, and the third path 0->3 will cost us 40.
We can’t take the first path since K = 1 and in this path, we are taking 2 stops, at station ‘1’ and station ‘4’.
Similarly, there are 2 stops in the second path. Hence we’ll finally choose the 3rd path i.e. 0->3, which is colored in blue.
Applied brute force
It was a video call round and was aked a question on data structures and algorithms.



Used breadth first search theorem

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?