Do practice lot of data structures based questions as these are the most important part of the interview in product based company. Also, 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.
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.
This round consisted of two coding questions.
There are two singly linked lists in a system. By some programming error, the end node of one of the linked list got linked to the second list, forming an inverted Y shaped list. Write a program to get the point where two linked list merge.
Y ShapedLinked List
Above diagram shows an example with two linked list having 15 as intersection point.
I simply used linked list traversal to solve this question with the concept involving the difference of lengths of both linked list.
You are given a 2-dimensional array/list having N rows and M columns, which is filled with ones(1) and zeroes(0). 1 signifies land, and 0 signifies water.
A cell is said to be connected to another cell, if one cell lies immediately next to the other cell, in any of the 8 directions (2 vertical, 2 horizontal, and 4 diagonal).
A group of connected cells having value 1 is called an island. Your task is to find the number of such islands present in the matrix.
This was face to face interview round.
Given a linked list which contains a series of numbers separated by “0”. Add them and store them in the linked list in-place.
Note :There will not be continuous zeros in input.
Examples:
Input : 1->2->3->0->5->4->0->3->2->0
Output : 6->9->5
Input : 1->2->3->4
Output : 1->2->3->4
You are given a binary tree, in which the data present in the nodes are integers. You are also given an integer X.
Your task is to delete all the leaf nodes with value X. In the process, if the newly formed leaves also have value X, you have to delete them too.
This was face to face interview round.
Given a Singly Linked List, starting from the second node delete all alternate nodes of it. For example, if the given linked list is 1->2->3->4->5 then your function should convert it to 1->3->5, and if the given linked list is 1->2->3->4 then convert it to 1->3.
Given a string S, the task is to remove all the duplicates in the given string.
Search a Word in a 2D Grid of characters
Given a 2D grid of characters and a word, find all occurrences of the given word in the grid. A word can be matched in all 8 directions at any point. Word is said to be found in a direction if all characters match in this direction (not in zig-zag form).
The 8 directions are, Horizontally Left, Horizontally Right, Vertically Up, Vertically Down and 4 Diagonal directions.
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is the purpose of the < title > tag in HTML?