Tip 1 : OOPS - You should be well versed with basic OOPS principles.
Tip 2 : You should be confident and have profound knowledge about the projects you worked on.
Tip 3 : Basic DB concepts like joins, normalization.
Tip 1 : Have some projects on resume.
Tip 2 : Do not put false things on resume.



A -> 1
B -> 2
C -> 3
...
Z -> 26
AA -> 27
AB -> 28
...
Approach :
The process is very much similar to binary to decimal conversion. In this case, the base of the given system is to be taken as 26. Also, in this system 1 is represented as ‘A’, 2 is represented as ‘B’ and so on till 26 is represented as ‘Z’
For example-
CDA can be converted as 3*26*26 + 4*26 + 1
= 26(3*26 + 4) + 1
= 26(0*26 + 3*26 + 4) + 1
AB can be converted as 1*26 + 2
TC : O(N), where N = length of the input string.
SC : O(1)



Let ‘ARR1’ = [1, 5, 10, 15, 20] and ‘ARR2’ = [2, 4, 5, 9, 15]
In this example, common points are 5, 15.
First, we start with ARR2 and take the sum till 5 (i.e. sum = 11). Then we will switch to ‘ARR1’ at element 10 and take the sum till 15. So sum = 36. Now no element is left in ‘ARR2’ after 15, so we will continue in array 1. Hence sum is 56. And the path is 2 -> 4 -> 5 -> 10 -> 15 -> 20.




Input: Let the binary tree be:

Output: 2
Explanation: The root node is 3, and the leaf nodes are 1 and 2.
There are two nodes visited when traversing from 3 to 1.
There are two nodes visited when traversing from 3 to 2.
Therefore the height of the binary tree is 2.
The question was that there are n bombs of varying sizes. Over time, the top two stones collide with each other; the smaller stone is completely destroyed, and the size of the bigger stone is reduced by the size of the smaller stone. What will be the size of the last remaining stone?






If the given string is: STR = "abcde". You have to print the string "edcba".
Try to solve the problem in O(1) space complexity.

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