Get best answers to any doubt/query/question related to programming , jobs, gate, internships and tech-companies. Feel free to ask a question and you will receive the best advice/suggestion related to anything you ask about software-engineering , development and programming problems .

0 like 0 dislike
2,094 views
in Online Assessments by Expert (32,020 points)

1 Answer

0 like 0 dislike

Section-1:-
Q1. Given an array rotate the array to the left so the minimum element come at the 0th index. Print the rotated array. Simple variaton of Rotate the array by k position .

 

Q2. Given a genric tree, you need to return the max depth of the tree. The input was as follows:-
N (integer) next N-1 lines shows the edge between two nodes. So we need to build the adjacency matrix. Simple dfs problem.

by Expert (32,020 points)
...