Tip 1: Practice at least 250 Questions.
Tip 2: Do at least 2 projects.
Tip 1 : Have some projects on resume.
Tip 2: Do not put false things on resume
Imagine a group of people meeting each other for the first time, and in keeping with protocol, each person must greet and elbow bump every other person once. If there were seven people in the group, how many elbow bumps would occur in total? Also, outline as a short note in the comment section the process you used to come to this conclusion.
Person 1 had to bump elbows with 6 people. Person 2 has to bump elbows with 5 people since he already bumped elbows with Person 1, and so on. Therefore, the total number of elbow bumps will be 6+5+4+3+2+1 i.e. n*(n-1)/2 and n is the total number of people present. So, the final answer is 21.



‘ARR1’ = [3 6 9 0 0]
‘ARR2’ = [4 10]
After merging the ‘ARR1’ and ‘ARR2’ in ‘ARR1’.
‘ARR1’ = [3 4 6 9 10]
Sahil has been given two sorted integer arrays/lists ‘ARR1’ and ‘ARR2’ of size ‘M’ and ‘N’. Ninja has to merge these sorted arrays/lists into ‘ARR1’ as one sorted array. You may have to assume that ‘ARR1’ has a size equal to ‘M’ + ‘N’ such that ‘ARR1’ has enough space to add all the elements of ‘ARR2’ in ‘ARR1’.



For the trees given below:-

The given trees are identical as:-
1. The number of nodes in both trees is the same.
2. The number of edges in both trees is the same.
3. The data for root for both the trees is the same i.e 5.
4. The data of root -> left (root’s left child) for both the trees is the same i.e 2.
5. The data of root -> right (root’s right child) for both the trees is the same i.e 3.
6. The data of root -> right -> left ( left child of root’s right child) for both the trees is the same i.e 6.
7. Nodes with data 2 and 6 are the leaf nodes for both the binary trees.
You are given two binary trees with 'N' and 'M' nodes respectively. You need to return true if the two trees are identical. Otherwise, return false.


A
BB
CCC

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