Tip 1 : Do not only read, practice!
Tip 2 : Take notes of your mistakes
Tip 3 : give at least 1 hour every day
Tip 1 : You should include meaningful projects
Tip 2 : Add only those skills at which you are proficient.
Tip 3 : It should be to the point.
English MCQs
Quantitative + Aptitude Mcqs
Coding round (60 minutes)



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.
The first line contains the number of test cases, T = 2.
The first test case
Given
N = 4
M = 1
A = [ [1, 3, 10] ]
Approach
Since by taking the first train one can only travel from any city between 1 and 3. There is no way to reach city 4.
Thus, the answer is -1.
The second test case
Given
N = 4
M = 3
A = [ [1, 4, 10], [1, 2, 5], [2, 4, 3] ].
Approach
First, take the second train from city 1 and reach city 2 at a cost of 5.
Then, take the third train from city 2 and reach city 4 at a cost of 3.
Thus, the total cost is 5+3 = 8.






Given
N = 5
Strings are ["aaa", "hack", "zzz", "abcd", "szxp"]
Approach
There must be a minimum of 3 strings that Alice could have started with to end up with the given final array. Note that "aaa" and "zzz" are encodings of each other, so at least one of them must have been present in the original array. Similarly, at least one of "hack" and "szxp" must have been present. "abcd" does not have its encoding in the final array so it is guaranteed to be present in the original array and did not get encoded.
Here are all the 9 ways that Alice could have ended up with the final array:
Alice started with 5 strings: ["aaa", "hack", "zzz", "abcd", "szxp"] and none of them got encoded.
Alice started with 4 strings: ["aaa", "hack", "abcd", "szxp"] and only "aaa" got encoded to "zzz".
Alice started with 4 strings: ["zzz", "hack", "abcd", "szxp"] and only "zzz" got encoded to "aaa".
Alice started with 4 strings: ["zzz", "hack", "abcd", "aaa"] and only "hack" got encoded to "szxp".
Alice started with 4 strings: ["zzz", "szxp", "abcd", "aaa"] and only "szxp" got encoded to "hack".
Alice started with 3 strings: ["aaa", "szxp", "abcd"] with "aaa" and "szxp" getting encoded to "zzz" and "hack" respectively.
Alice started with 3 strings: ["zzz", "szxp", "abcd"] with "zzz" and "szxp" getting encoded to "aaa" and "hack" respectively.
Alice started with 3 strings: ["aaa", "hack", "abcd"] with "aaa" and "hack" getting encoded to "zzz" and "szxp" respectively.
Alice started with 3 strings: ["zzz", "hack", "abcd"] with "zzz" and "hack" getting encoded to "aaa" and "szxp" respectively.
The minimum number of strings Alice could have started with is 3, so the answer is 3



In the first test case, player 1 will move from (3,2)->(1,1) and the second player will move from (3,4)->(1,4).
In the second test case, player 1 will move from (3,4)->(2,4)->(1,4) and the second player doesn't move.
Tell us about your strength and weakness.
Where do you see yourself in 5 years?
What if a person having the same experience as you have a higher position? Your thoughts on that.
Tip 1 : Answer the weaknesses as your strength.
Tip 2 : Be confident.
Tip 3 : Explain using STAR analysis.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
To make an AI less repetitive in a long paragraph, you should increase: