Tip 1 : prepare topics
Tip 2 : read books
Tip 3 : practice coding
Tip 1 : Make it short and crisp
Tip 2 : Write what you know
It was on hackerrank where i had to solve coding questions some mcq based questions. In test if you moved to another question you couldnt come back.



The traversal should proceed from left to right according to the input adjacency list.
Adjacency list: { {1,2,3},{4}, {5}, {},{},{}}
The interpretation of this adjacency list is as follows:
Vertex 0 has directed edges towards vertices 1, 2, and 3.
Vertex 1 has a directed edge towards vertex 4.
Vertex 2 has a directed edge towards vertex 5.
Vertices 3, 4, and 5 have no outgoing edges.
We can also see this in the diagram below.
BFS traversal: 0 1 2 3 4 5




'S' = "{}()".
There is always an opening brace before a closing brace i.e. '{' before '}', '(' before ').
So the 'S' is Balanced.
It was an hackathon where we had to design and approach the problem statement. Only some of the people were selected in this round.

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