Tip 1 : Prepare Data structure and algorithm
Tip 2 : RDBMS and OS are also important
Tip 3 : Focus on CAO
Tip 1 : Have some projects on resume.
Tip 2 : Always write things which you can explain there
Nice environment everything went good.
LCM(1,N) + LCM(2,N) + .. + LCM(N,N)
If two nodes have the same position, then the value of the node that is added first will be the value that is on the left side.
For the binary tree in the image below.
The vertical order traversal will be {2, 7, 5, 2, 6, 5, 11, 4, 9}.
It was a tough round focus on the key concepts
Derive merge sort complexity.
Different methods to obtain fibonacci series , Space complexity of fibonacci recursion.
1. push(data) :
This function should take one argument of type integer. It pushes the element into the stack and returns nothing.
2. pop() :
It pops the element from the top of the stack and returns nothing.
3. top() :
It returns the element being kept at the top of the stack.
4. getMin() :
It returns the smallest element present in the stack.
Query-1(Denoted by an integer 1): Pushes integer data to the stack. (push function)
Query-2(Denoted by an integer 2): Pops the data kept at the top of the stack. (pop function)
Query-3(Denoted by an integer 3): Fetches and returns the data being kept at the top of the stack. (top function)
Query-4(Denoted by an integer 4): Returns the smallest element present in the stack. (getMin() function)