Tip 1 : Try to come to basic working solution as early as possible
Tip 2 : Try to ask more questions from interviewer, to clarify the question even if you know the answer
Tip 3 : Try to keep your answer generalised because there might be follow-up questions on the present question
Tip 4 : Use proper variable names(instead of i or j in loop use itr1 or itr2 etc).
Tip 5 : Practice more questions of these topics: Arrays, Tree, Backtracking, DP, Graph
Tip 1 : Mention only those projects in which you are confident
Tip 2 : Try to keep your resume of at most 2 pages
Very fixed deadline of interview of 45 min
Interviewer was friendly.
Difference between “==” and “===” operators in js.(Learn)
Explain Hoisting in javascript. (Learn)



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.




Input:
4 5
0 1 5
0 2 8
1 2 9
1 3 2
2 3 6

In the given input, the number of vertices is 4, and the number of edges is 5.
In the input, following the number of vertices and edges, three numbers are given. The first number denotes node ‘X’, the second number denotes node ‘Y’ and the third number denotes the distance between node ‘X’ and ‘Y’.
As per the input, there is an edge between node 0 and node 1 and the distance between them is 5.
The vertices 0 and 2 have an edge between them and the distance between them is 8.
The vertices 1 and 2 have an edge between them and the distance between them is 9.
The vertices 1 and 3 have an edge between them and the distance between them is 2.
The vertices 2 and 3 have an edge between them and the distance between them is 6.
1. There are no self-loops(an edge connecting the vertex to itself) in the given graph.
2. There can be parallel edges i.e. two vertices can be directly connected by more than 1 edge.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which SQL clause is used to specify the conditions in a query?