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 your resume.
Tip 2: Do not put false things on your resume



F(n) = F(n-1) + F(n-2),
Where, F(1) = F(2) = 1.
For ‘N’ = 5, the output will be 5.



The given array is sorted in non-decreasing order.



1. Push(num): Push the given number in the stack if the stack is not full.
2. Pop: Remove and print the top element from the stack if present, else print -1.
3. Top: Print the top element of the stack if present, else print -1.
4. isEmpty: Print 1 if the stack is empty, else print 0.
5. isFull: Print 1 if the stack is full, else print 0.
We perform the following operations on an empty stack which has capacity 2:
When operation 1 1 is performed, we insert 1 in the stack.
When operation 1 2 is performed, we insert 2 in the stack.
When operation 2 is performed, we remove the top element from the stack and print 2.
When operation 3 is performed, we print the top element of the stack, i.e., 3.
When operation 4 is performed, we print 0 because the stack is not empty.
When operation 5 is performed, we print 0 because the stack is size 1, which is not equal to its capacity.



let say we have 3 players and 5 rooms available and the rooms are at positions: 1 2 3 4 6
Here the optimal allocation is in rooms 1 3 6 and the overall focus level is 2.

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