Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
The Entire Test is held in HackerRank Platform. It has:
2 coding questions (one easy and one medium)
2 output questions(medium)
2 Aptitude(easy)
1 general Computer science(medium)
It took me 30 min for each coding questions. I did not know that general question is related to bash commands.
Tips: Practice the Warmup questions in Hacker Rank.
Do some Basic aptitude questions.
Thorough with the basic C and C++ concepts



You need to return the head to the doubly linked list.
The doubly linked list would be: 1 2 3 4 5 and can be represented as:

If the left subtree exists, recursively convert the left subtree to Doubly Linked List. If the right subtree exists, recursively convert the right subtree to Doubly Linked List. When in the left subtree, find the inorder predecessor of the root, make this as the previous of the root and its next as the root. Similarly, when in the right subtree, find the inorder successor of the root, make this as the next of the root and its previous as the root. Finally, return the leftmost node and return it since this would be the head of the Doubly Linked List.



A simple approach is to sort the array. Next, traverse the array and maintain a count of the occurrence of the current element. As soon as an element with count = 3 is found, that element is the desired answer. Using sorting, the time complexity will be O(nlogn).
To solve the question in O(N) complexity, concept of XOR can be applied.
The property of XOR is :
a) XOR of a number with itself is 0.
b) XOR of a number with 0 is number itself.
So, XOR of all array elements will return us the number with thrice occurrence in the array.
It's completely around the data structures. The questions are a bit tricky but once u think without any tension u can get through easily. The interviewer is helpful and gives u few hints if u catch them at the right point of time u got it.
Tips: got through Data Structures and Algorithms Made Easy by Narasimha Karumanchi. It's a best book for the interviews.



nodes, where the nodes have integer values.
For the given binary tree:

The Inorder traversal will be [5, 3, 2, 1, 7, 4, 6].
The Preorder traversal will be [1, 3, 5, 2, 4, 7, 6].
The Postorder traversal will be [5, 2, 3, 7, 6, 4, 1].
Inorder traversal requires that we print the leftmost node first and the right most node at the end.
So basically for each node we need to go as far as down and left as possible and then we need to come back and go right. So the steps would be :
1.Start with the root node.
2. Push the node in the stack and visit it's left child.
3. Repeat step 2 while node is not NULL, if it's NULL then pop the topmost node from the stack and print it.
4. Now move to node's right child and repeat step 1
5. Repeat the above steps while node is not NULL and stack is not empty



Try to solve this problem in O(N) time complexity and O(1) space complexity.
The idea to solve this problem is to traverse the given list, skip the first M nodes, delete the next N nodes and recur for the remaining nodes till the end of the list is reached. This solution will have a O(N) time complexity where N = length of the list.
The interviewer asked to put everything on the blackboard and write down the code of each and everything.
Question : Explain all the search algorithm you know with space and Time complexities.
Answer : Linear search : It is a sequential search algorithm where the entire array is traversed till the desired element is not found. Time complexity is O(N) and auxiliary space is O(1).
Binary search : In this algorithm, a sorted array is searched by repeatedly dividing the search interval in half.
Steps :
1. Initially the interval covers the whole array.
2. If the value to be searched is less than the item in the middle of the interval, narrow the interval to the lower half. Otherwise, narrow it to the upper half.
3. The process is repeated until the value is found or the interval is empty.
Time complexity is O(log n) and auxiliary space is O(1) in case of iterative implementation.



For 'arr' = [ 1, 2, 3, 1, 2]. you need to return 1.
The problem can be solved using the concept of hashing. Create a hash map and store elements with their frequencies in it. Next, traverse the hash map and print the key with the maximum value as its frequency. The time and space complexity of this solution would be O(N).
It's Technical+ HR interview all the technical questions went around resume. It went around 45 minutes they are very particular about what you wrote in the resume.
HR questions are general. For example :
1. What are your future plans?
2. Where will u see yourself in the office after 5 years?
Tips: Please make sure that whatever you write in resume should be known to you very well. Don't write false things about yourself. And make sure you know completely about the projects you are going to write in resume(at least the part you worked)

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?