Tip 1 : Complete all the questions that are available in the Coding Ninjas course.
Tip 2 : Keep practicing the same question in IDE also so that you can write the full-length code (driver code as well)
Tip 3 : Do practice from more websites like GFG, Codezen, and Leetcode so that you can tackle any question related to that topic.
Tip 1 : Try to make a resume from Novoresume as the template matches with the companies pattern. They are ATS friendly.
Tip 2 : Write only the technical skills in which you can answer accurately.
Tip 3 : Mention your big projects and insert the link of your code like GitHub URLs.
As it was 4 rounds. If you clear the first round MCQ then only you can jump it to the coding round. First-round is MCQ and it was comprised of 90 minutes and you had to solve 90 MCQs.Coding round timing was 45 minutes and I need to solve 2 questions. One was hard and another was medium level. You have to clear all the test cases then only you will get selected for another round.



1. A magic index in an array A[0 ... N - 1] is defined to be an index i such that A[i] = i.
2. The elements in the array can be negative.
3. The elements in the array can be repeated multiple times.
4. There can be more than one magic index in an array.





A subtree of a node X is X, plus every node that is a descendant of X.
Look at the below example to see a Binary Tree pruning.
Input: [1, 1, 1, 0, 1, 0, 1, 0, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
Output: [1, 1, 1, -1, 1, -1, 1, -1, -1, -1, -1]
For example, the input for the tree depicted in the below image would be :

1
2 3
4 -1 5 6
-1 7 -1 -1 -1 -1
-1 -1
Level 1 :
The root node of the tree is 1
Level 2 :
Left child of 1 = 2
Right child of 1 = 3
Level 3 :
Left child of 2 = 4
Right child of 2 = null (-1)
Left child of 3 = 5
Right child of 3 = 6
Level 4 :
Left child of 4 = null (-1)
Right child of 4 = 7
Left child of 5 = null (-1)
Right child of 5 = null (-1)
Left child of 6 = null (-1)
Right child of 6 = null (-1)
Level 5 :
Left child of 7 = null (-1)
Right child of 7 = null (-1)
The first not-null node (of the previous level) is treated as the parent of the first two nodes of the current level. The second not-null node (of the previous level) is treated as the parent node for the next two nodes of the current level and so on.
The input ends when all nodes at the last level are null (-1).
The above format was just to provide clarity on how the input is formed for a given tree.
The sequence will be put together in a single line separated by a single space. Hence, for the above-depicted tree, the input will be given as:
1 2 3 4 -1 5 6 -1 7 -1 -1 -1 -1 -1 -1
During my interview, he asked a few questions from Trees (implementation of AVL tree), searching and sorting algorithms, questions from Java, projects, and explain the code that was in my project. Deep questions from DBMS and Operating system.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
To make an AI less repetitive in a long paragraph, you should increase: