Tip 1 : You need a strong aptitude for knowledge as a first tip
Tip 2 : Solve questions from previous coding questions
Tip 3 : Make sure your resume includes at least two projects
Tip 1 : Have at least 2 good projects mentioned in your resume with a link
Tip 2 : Focus on skills, internships, projects, and experiences.
Tip 3 : Make it simple, crisp, and one page
Round 1: Online Assessment:



We cannot use the element at a given index twice.
Try to do this problem in O(N) time complexity.
Try to solve the question in expected time complexity



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
First I tried to apply brute force but it did not work. Tried the standard approach then and it somehow worked
There was only 1 round of interviews for Summer Internships, duration ranged from 30 minutes to 80 minutes. Most were over around 50 minutes.
The interviewer introduced himself and then asked me to introduce myself.
My interview lasted for only 60 minutes
He told me that my interview was going to test me on my coding and problem-solving skills.



We have a linked list 1->2->3->4->5->6->7 and so on. You are supposed to swap pairs of a linked list like swap (1,2), (3,4), (5,6), and so on.
1. You may not modify the data in the list’s nodes; only nodes themselves may be changed. Because imagine a case where a node contains many fields, so there will be too much unnecessary swap.
2. If a pair of a node does not exist, then leave the node as it is.
Approach 1:
In every swap linked list question, you should always think about temp holder which point to next node.
And once init these temp holder, we can swap on these nodes which follows description.
After swapping, we update current pointers to temp holder
In this question we separate nodes into pairs since we have to swap between these pair
Step 1. Init temp holder Use nextPair to store next pair's position
Step 2. Swap, make second point to first, prev point to second, and first point to nextPair
Step 3. Update: Update prev and current pointer to corresponding temp holder
Complexity Analysis
Time: O(N) : Let n be length of nodes
Space: O(1)
This was a technical + HR round taken by two interviewers.

An element is having large number of occurrence if that element occurs more than floor('N' / 2) times in the array. If there is no such element present, print -1.
Expected O(logn) time solution.
Just stay honest and answer confidently

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?