Tip 1 : Do practice lot of data structures based questions as these are the most important part of the interview in product
based company.
Tip 2 : I used Codezen of Coding Ninjas to solve questions as there you can found questions topic wise with difficulty level also. So I recommend that.
Tip 3 : Be consistent
I guess there are three most important things in your resume, your skills, projects & experience. Try to build a simple, expressive & genuine resume. By genuine I mean don't put things that you are not confident of, first be confident then put it.
It was coding test consisting of two problems



The Linked Lists, where a1, a2, c1, c2, c3 is the first linked list and b1, b2, b3, c1, c2, c3 is the second linked list, merging at node c1.

I simply used linked list traversal to solve this question with the concept involving the difference of lengths of both linked list.



I used DFS concept to solve this question and visited all the elements of 2d array which are unvisited and counted the total number of islands.
coding questions asked by interviewer


I took a sum variable and add current element data to sum if it’s not zero and if it is zero change the previous pointers in the given list.



For the given binary tree, and X = 3:

I simply used postorder traversal and deleted the leaf node if it satisfy the given condition of question that is it should be leaf node and should have value equal to x.
It was very tough round for me. Interviewer asked me one very hard problem based on DSA. Luckily, I was able to code that problem and made the interviewer understand.



The same letter cell should not be used more than once.
For a given word “design” and the given 2D board
[[q’, ‘v’, ‘m’, ‘h’],
[‘d’, ‘e’, ‘s’, ‘i’],
[‘d’, ‘g’, ‘f’, ‘g’],
[‘e’, ‘c’, ‘p’, ‘n’]]
The word design can be formed by sequentially adjacent cells as shown by the highlighted color in the 2nd row and last column.

I gave the interviewer a backtracking approach and he asked whether I can improve it a little more.I told him that I can use prefix checks also. Then I made use of it and he was satisfied with that approach.
Asked me puzzle of cutting rod and coin exchange
Tip 1: Think thoroughly before replying
Tip 2: Always answer with respect to coding

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?