Tip 1 : Practice daily question of DS algo
Tip 2 : Prepare all your projects
Tip 3 : Daily practice of aptitude
Tip 4 : Practice previous years Company questions
Tip 1 : Resume should contains only those skills that you know
Tip 2 : Add good projects and add github link to it also
Tip 3 : Resume should not be too long
The test consisted of 2 coding question and 25 questions of quantitative, reasoning and technical question based on DBMS, Data structrues



If the input tree is as depicted in the picture:
The Left View of the tree will be: 2 35 2
The problem can be solved using simple recursive traversal. We can keep track of the level of a node by passing a parameter to all recursive calls. The idea is to keep track of the maximum level also. Whenever we see a node whose level is more than maximum level so far, we print the node because this is the first node in its level (Note that we traverse the left subtree before right subtree).


1. If the list is empty, the function immediately returns None because there is no middle node to find.
2. If the list has only one node, then the only node in the list is trivially the middle node, and the function returns that node.
Traverse linked list using two-pointers. Move one pointer by one and the other pointers by two. When the fast pointer reaches the end, the slow pointer will reach the middle of the linked list.
The interviewer was cool and calm . He starts questioning by asking about my projects. Then he asked me questions about DS algo . He also asked me questions related to DBMS. Then he gave me coding problems to solve.



‘N’ = 4, ‘S’ = “code”
Character ‘c’ gets changed to ‘b’.
Character ‘o’ gets changed to ‘p’.
Character ‘d’ gets changed to ‘c’.
Character ‘e’ gets changed to ‘f’.
Encoded string = “bpcf”
Follow the steps below to solve this problem:
Pick the first character from the source string.
Append the picked character to the destination string.
Count the number of subsequent occurrences of the picked character and append the count to the destination string.
Pick the next character and repeat steps 2, 3 and 4 if the end of the string is NOT reached.



A majority element is an element that occurs more than floor('N' / 2) times in the array.
Approach: The basic solution is to have two loops and keep track of the maximum count for all different elements. If maximum count becomes greater than n/2 then break the loops and return the element having maximum count. If the maximum count doesn’t become more than n/2 then the majority element doesn’t exist.
Algorithm:
Create a variable to store the max count, count = 0
Traverse through the array from start to end.
For every element in the array run another loop to find the count of similar elements in the given array.
If the count is greater than the max count update the max count and store the index in another variable.
If the maximum count is greater than the half the size of the array, print the element. Else print there is no majority element.



Merge Sort Algorithm -
Merge sort is a Divide and Conquer based Algorithm. It divides the input array into two-parts, until the size of the input array is not ‘1’. In the return part, it will merge two sorted arrays a return a whole merged sorted array.

The above illustrates shows how merge sort works.
It is compulsory to use the ‘Merge Sort’ algorithm.
I divided the input array into two halves, calls itself for the two halves, and then merge the two sorted halves. The merge() function is used for merging two halves. The merge(arr, l, m, r) is a key process that assumes that arr[l..m] and arr[m+1..r] are sorted and merges the two sorted sub-arrays into one.
I was asked to write on the topic “If intelligence Grew On Trees” in about 200 words.
Tell Me something about yourself.
A situation was asked where my and team leader’s opinion were different and what was the result of this and how i coped up with it?
One person you admired and why?
Tell me your favorite subject

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?