Tip 1: You should have excellent problem-solving skills.
Tip 2: Code a lot.
Tip 3: You should be thorough with your concepts of Data Structures and Algorithms.
Tip 4: Know the complexities of the code you’ve written.
Tip 1: Mention your important projects in detail.
Tip 2: Try to keep your resume to a single page. Highlight your skills, projects, and work experience more than your CGPA. Ensure proper spacing and a professional font.
Tip 3: Keep it precise and concise.
Tip 4: Mention achievements relevant to the role you are applying for.
The test was in the morning from 10:00 to 12:00. It was a two-round test. There was a 45-minute MCQ-based Technical and Cognitive Assessment Round. Only those candidates who cleared this round could sit in the next round, a 45-minute coding test. There was a sectional cutoff that needed to be cleared in order to proceed to the coding round. The CoCubes test platform was fairly easy to understand and user-friendly.
The coding round was fairly simple. It had two very easy array-based questions.



1) A prime number is a number that has only two factors: 1 and the number itself.
2) 1 is not a prime number.
I applied sieve of Eratosthenes to find all prime numbers in that range.



1- Visit the root node.
2- Traverse all nodes in the left subtree of the root node.
3- Traverse all the nodes in the right subtree of the root node.
For the given tree below,
Preorder traversal for the given tree will be [1, 2, 4, 5, 3]. Hence, the answer is [1, 2, 4, 5, 3].

Elements are in the level order form. The input consists of values of nodes separated by a single space in a single line. In case a node is null, we take -1 in its place.
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
Explanation :
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
Recursive approach helps to solve this problem.



In the given linked list, there is a cycle, hence we return true.

Implemented using the two-pointer concept.



A Sudoku solution must satisfy all the following conditions-
1. Each of the digits 1-9 must occur exactly once in each row.
2. Each of the digits 1-9 must occur exactly once in each column.
3. Each of the digits 1-9 must occur exactly once in each of the 9, 3x3 sub-grids of the grid.
You can also assume that there will be only one sudoku solution for the given matrix.
Tip 1: Be confident when replying.
Tip 2: Put a soft smile on your face.

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