Tip 1 : Give more mock interviews
Tip 2 : Practise online contests on codechef
Tip 3 : Keep your CGPA high
Tip 1 : Keep at least 1 project on resume
Tip 2 : Use an ATS friendly template



A leaf is a node with no children.
For the given binary tree
Output: 2
The shortest path is from root node 1 to leaf node 2 which contains 2 nodes in the path. Hence, the minimum depth is 2.


str = “ababba”, k = 3.
In this example, If we remove one ‘b’ from the 3rd position, then the final string will be “ababa” which is a palindrome.
Hence the answer will be True.



For the given input array [4, 3, 2, 1], the minimum no. of swaps required to sort the array is 2, i.e. swap index 0 with 3 and 1 with 2 to form the sorted array [1, 2, 3, 4].
Use a map of pair to keep a count of each type of i%3, A[i]%3 and then do basic min max to find the answer like this
Interviewer asked me to pick up a project from my resume and briefly give the explanation of what I did and how I implemented
Questions in this round are largely dependent on what the project is. I had an Operating Systems scheduler project and was asked questions along these line:
1. What was the motivation to pickup this project
2. What alternative solutions were considered instead of thi
3. What are the drawbacks of the proposed solution?
4. What are the real world applications for this
Tip 1 : Make a list of all possible questions that can be made on your project
Tip 2 : Practise answering those questions with friends in mock interview settings



The profit of the Mukesh Business over ‘N’ days is shown by array/list ‘profit’. It may contain negative values as there will be a loss on those days.
Discussed about one of the IOT projects I had done.
Asked me what alternatives of the project had I considered.
He discussed what challenged I faced and how did I overcome them
Interviewer also asked how the solution can further be improved.
I was asked questions on what I know about trilogy and how would I be able to fit in the fast paced culture of Trilogy.
I was also asked what computer science courses I have studied till now and asked me to give short explanation of what I had learnt in each of them.
Tip 1 : Stay calm during this interview and don't panic
Tip 2 : Research a bit about the company culture on their website. https://innovations.trilogy.com/about-trilogy-innovations/

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