Tip 1 : Always remember that question-solving is not everything in the interview, it's part of the interview. Communicating well with the interviewer is the most essential thing during the interview.
Tip 2 : Practice a lot of Data Structures and Algorithms based questions that I have practiced from Coding Ninjas and on other coding portals.
Mention good projects and only those skills in which you are confident.
This round was very important and tough too as only one coding question was there and we have to code within 3 hours.



This was solved by me through dynamic programming. Let dp[i][j] denote the maximum possible weight you can fill in the bag with a total capacity of j using exactly one stone of each color from 1 to i. Now you can club all same-colored stones in a vector. Then this problem is same as the classical knapsack problem and I passed all test cases and was selected for the next round.



[1, 2, 3, 4] is a strictly increasing array, while [2, 1, 4, 3] is not.
Firstly I gave a recursion approach but then the interviewer asked me to optimize that so I gave him a standard DP approach for the longest increasing subsequences by storing the result and use them for future calculations of a bigger problem.



Input: Let the binary tree be:

Output: [10, 4, 2, 1, 3, 6]
Explanation: Consider the vertical lines in the figure. The top view contains the topmost node from each vertical line.
I simply used level-order traversal and the concept of horizontal distance. Whenever we encountered the first node for a particular horizontal distance then we store that in the map and at last in the map we have a tree top view. The interviewer asked me to write its code and I wrote a clean and commented code for it and he was satisfied with that.
This was again simple coding round



The given Linked Lists are merging at node c1.
In this case, c1 is 'MERGING POINT'.

At first, I gave the interviewer a complete brute force by considering each element of the first list and comparing it with each element of another list but that was inefficient. So I gave the interviewer the optimal approach by finding the difference of lengths of the linked list and then traversing bigger linked list to difference. Now start traversing both linked lists till we find the common element. This solution impressed the interviewer.
Describe your major project.
I started by giving details of my projects and technology used in projects. Then he asked me the most challenging task in your project which I told him which was related to data passing from one page to another and its regular update.



V is the number of vertices present in graph G and vertices are numbered from 0 to V-1.
E is the number of edges present in graph G.
The Graph may not be connected i.e there may exist multiple components in a graph.
I simply used the Depth-first search approach to solve this problem and wrote its neat code with good handwriting to the interviewer and he made me dry run it on few test cases and it was working fine.
Checked my thinking and analytical skills
1. Name different Android versions.
2. Tell me about your family backgrounds.
3. Ever handled pressure. If yes, Please elaborate
Tip 1 : Be confident while answering
Tip 2 : Keep proper eye contact
Tip 3 : Don't hesitate to ask anything from HR

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: