Tip 1 : Be patient while giving an interview, listen to the question asked by interviewer carefully and after asking needful question, start with the solution. Don't jump right at the solution.
Tip 2 : Do a little research about the organization you are giving interview for as it will be cherry on the cake if you know about the company, how it generates revenue and what tech stack it mainly works on.
Tip 3 : Revise conventional problems thoroughly as the chances of these type of questions to be asked are highest. Ex : N-Queen problem, LCS, Diameter of a tree, etc.
Tip 1 : Keep it concise, put projects Github link in the resume so that interviewer knows that you are not bluffing.
Tip 2 : Add coding platforms link to your profile, and it will be good if you mention the number of questions solved on such platforms in your resume.
20 Quantative Aptitude Questions + 20 Logical Reasoning Question + 2 Coding Questions (Total: 60 Minutes)



I used sliding window approach to solve this problem, as I already practiced that problem a few weeks before the interview.




In this example, this graph is directed and there are two triangles possible.
Triangle 1 : (0 3 2)
Triangle 2 : (0 1 2)

In this example, this graph is undirected and there are two triangles possible.
Triangle 1 : (0 3 2)
Triangle 2 : (0 1 2)
After the results for written round were announced, we headed to technical round interview, which was taken by one of the senior software engineers at Optum. The interview started with my introduction and then moved on to questions from DSA, OOPS and Databases. I was asked to implement tree data structure using OOPS in C++. Also, basic OOPS concepts were asked and then the interviewer gave me the question to find the diameter of the tree which I had practiced earlier and was able to provide a solution in very less amount of time. Also, I was asked about candidate key, Primary key, ACID properties, Normal Forms, etc from DBMS. I was also asked to implement heap sort. And with this the interview ended.



The diameter of a binary tree is the length of the longest path between any two end nodes in a tree.
The number of edges between two nodes represents the length of the path between them.
Input: Consider the given binary tree:

Output: 6
Explanation:
Nodes in the diameter are highlighted. The length of the diameter, i.e., the path length, is 6.
I solved this problem recursively by choosing the solution out of these 3 cases i.e. diameter of tree will be the max of :
1. left subtree's diameter
2. right subtree's diameter
3. longest route which goes through the root of the tree i.e. height of left subtree + height of right subtree + 1
This was a normal HR round, where the interviewer asked me about my strengths and weaknesses, where I see myself in 5 years, my hobbies, cocurricular activities, etc. It was just a normal chit-chat round and I don't think it will have any affect on your overall verdict, given that you don't completely mess this round
1. What are your strengths and weakness
2. Describe yourself
3. Sports and hobbies
4. Where do you see yourself in 5 years
5. Positions of responsibility
Tip 1 : Be calm and composed in the HR round
Tip 2 : Be confident while talking to the HR, and practice in a mock round before actual interview
Tip 3 : Use your skills to guide the interview course

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?