Tip 1 : Atleast go through most asked 300-400 questions by all companies.
Tip 2 : Before interview, go through all the problems asked by the company you are interviewing for.
Tip 3 : Do mock interviews during preparation.
Tip 1 : Have some good project on resume which you can explain in detail.
Tip 2 : Prepare everything that you have put in your resume.
Online round was from 3PM in the afternoon. It was an online round on hackerrank, we had to solve all three problems in 90 mintutes to qualify for next rounds.



• The reference to the head of the linked list is not given.
• The node to be deleted is not a tail node.
• The value of each node in the Linked List is unique.
• It is guaranteed that the node to be deleted is present in the linked list.

Copy data of the next node to the current node
It's clear that The task question is wrong. You cannot delete the node.
Basically, instead of ONLY deleting the provided node we are not just doing it but CORRUPT the next node. It's a bad question wording (without clarification about options) and a bad solution. In my opinion, the correct answer for the interview is: "You CANNOT do this by having the node reference only. BUT we can make very similar operation by corrupting the next node. Although it's possible I don't recommend this solution for production applications.



1. You can return the list of values in any order. For example, if a valid triplet is {1, 2, -3}, then {2, -3, 1}, {-3, 2, 1} etc is also valid triplet. Also, the ordering of different triplets can be random i.e if there are more than one valid triplets, you can return them in any order.
2. The elements in the array need not be distinct.
3. If no such triplet is present in the array, then return an empty list, and the output printed for such a test case will be "-1".
Steps to find closest 3 sum to the given target:
sort the array(through sorting we can increase the efficiency of the solution)
unless and until the array is sorted applying two pointer doesn't make sense.
use two pointer approach
make a left pointing next to i and a right pointer at the end of it
make a curr_sum variable
check for the condition if target - curr_sum < min_diff
if curr_sum > target than decrement the right pointer
else increment left pointer.
Time complexity - O(N^2)
space complexity - O(1) as no extra space required
The timing was 10 AM
The interviewer was very gentle



For N = 1, there is only one sequence of balanced parentheses, ‘()’.
For N = 2, all sequences of balanced parentheses are ‘()()’, ‘(())’.
The idea is to add ')' only after valid '('
We use two integer variables left & right to see how many '(' & ')' are in the current string
If left < n then we can add '(' to the current string
If right < left then we can add ')' to the current string



1. In a row, after selecting an element at a given position, you cannot select the element directly below it
2. You can only select elements that are not directly below the previously selected element.
Dynamic Programming using Memoization =>
Start Point: 0, 0. Destination Point: M-1, N-1
Cost[i,j]: The cost to reach destination from (i,j). Matrix is initialized to inf.
The solution will be cost(0,0)
Initialize the cost matrix with boundary condition. cost[M-1,N-1]=grid[M-1,N-1]
Be careful with what you return for out of bound grid points. Make sure you return infinity so that they are ignored within the min equation
Time and Space Complexity: O(MN)
The timing was around 10 AM
Interviewer was very humble and gentle.
Tell me about yourself?
Tip 1) Do not ask the interviewer what he wants to know about you. You may be asking genuinely, but that just
sounds rude.
Tip 2) Do not speak what is already there in the resume. The interviewer wants to know what they have not
seen on the resume. And do not speak about anything personal.
Tip 3) Introduce yourself by including certain adjectives like problem-solving, innovation and tech-savvy,
creative, quick learner, etc. that best describe you in your professional life to boost your chances.
Why do you want to work for our company?
If you have had to handle private information in past roles, discuss that. If not, talk about a time when you were privy to private information while helping a colleague. Focus on your ability to work with integrity and a respect for people’s privacy.
Why do you want to work for our company?
Tip 1 : Talk about the past projects that you had worked on that matches the requirements of the current role.
Tip 2 : Talk about your career aspirations that are associated with this job role.
Why should we hire you?
Tip 1 : How well you would perform the job and how you would be a great addition to the team.
Tip 2 : How you possess the right talent which makes you stand apart.
Tip 3 : Everything should boil down to how you can add great value to the organization.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which SQL clause is used to specify the conditions in a query?