Tip 1 : Practice in front of mirror
Tip 2 : Communication should be good
Tip 3 : Practice many questions of aptitude, Reasoining and coding
Tip 1 : Highlight skills on resume
Tip 2 : Mention at least one internship experience
- In Morning
- Environment was good
- No significant activity
- Interview was average
Design a data-structure SpecialStack that supports all the stack operations like push(), pop(), isEmpty(), isFull() and an additional operation getMin() which should return minimum element from the SpecialStack. Your task is to complete all the functions, using stack data-Structure.
->> Input:
Stack: 18 19 29 15 16
->> Output: 15
Explanation:
The minimum element of the stack is 15.
Answer:
You just have to complete 5 functions, push() which takes the stack and an integer x as input and pushes it into the stack; pop() which takes the stack as input and pops out the topmost element from the stack; isEmpty() which takes the stack as input and returns true/false depending upon whether the stack is empty or not; isFull() which takes the stack and the size of the stack as input and returns true/false depending upon whether the stack is full or not (depending upon the
given size); getMin() which takes the stack as input and returns the minimum element of the stack.
Tips : Hands on Opertaing system concepts like PUSH, POP
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)
step 1- In the first test case for
query
step 2- push(2) Insert 2 into the stack.
The stack will be {2}
step 3- push(3) Insert 3 into the stack.
The stack will be {2 3}
step 4- pop() Remove top element from stack
Poped element will be 3 the
stack will be {2}
step 5 -getMin() Return the minimum element
min element will be 2
step 6- push(1) Insert 1 into the stack.
The stack will be {2 1}
step 7- getMin() Return the minimum element
min element will be 1
- Morning time
- Environment was good.
- No
- Interview was good
1- Introduce yourself
2- Why you wants to join Open Text?
3- Do you have any other offers?
4- What are your expectations?
5- What is your strength and weakness?
6 - What was your hard phase of life?
Tip 1 : Don't be excited and emotional during any questions
Tip 2 : Be calm and give appropriate answer
Tip 3 : Don't tell very lengthy stories
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is the purpose of the < title > tag in HTML?