Tip 1 : Practice Daily
Tip 2 : Do atleast 1 question daily
Tip 3 : Do Atleast 2-3 Projects
Tip 1 : Mention your skills
Tip 2 : Mention your Projects
My first round Was Late in Night Around 7 or 8 PM

Let ‘MATRIX1’ be :
1 1
0 0
Let ‘MATRIX2’ be:
1 1
0 0
All the 1s present in ‘MATRIX2’ can be considered a good island. There is 1 good island present.



1. There are no self-loops(an edge connecting the vertex to itself) in the given graph.
2. There are no parallel edges i.e no two vertices are directly connected by more than 1 edge.
Input:
4 5
0 1 5
0 2 8
1 2 9
1 3 2
2 3 6

The source node is node 0.
The shortest distance from node 0 to node 0 is 0.
The shortest distance from node 0 to node 1 is 5. In the above figure, the green path represents this distance. The path goes from node 0->1, giving distance = 5.
The shortest distance from node 0 to node 2 is 8. In the above figure, the pink path represents this distance. The path goes from node 0->2, giving distance = 8.
The shortest distance from node 0 to node 3 is 7. In the above figure, the yellow path represents this distance. The path goes from node 0->1->3, giving distance = 7.


Input: ‘text’ = “cxyzghxyzvjkxyz” and ‘pattern’ = “xyz”
Output: 2 7 13
Explanation: The pattern ‘pattern’ = “xyz” appears at 3 positions in ‘text’.
It was quite an easy Round


What do you know about us?
Where do you see yourself in next 5 years?
Will you be willing to relocate if necessary?

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is the purpose of the return keyword?