Tip 1 : Practice consistently
Tip 2 : Prepare at least one good project
Tip 1 : Mention only those subject or topic which is you studied or prepared.
Tip 2 : Mention project which you have done by yourself
Time of test was 4-6 pm.



Output the sum modulo 10 ^ 9 + 7.
If ‘X’ = 1, ‘Y’ = 1 and ‘Z’ = 0 then the output will be 84.
Explanation : 3 + 4 + 34 + 43 = 84



For the given binary tree

The level order traversal will be {1,2,3,4,5,6,7}.




3 3 1 3
1 2 2
1 3 2
2 3 -1
In the above graph, the length of the shortest path between vertex 1 and vertex 3 is 1->2->3 with a cost of 2 - 1 = 1.
It's guaranteed that the graph doesn't contain self-loops and multiple edges. Also the graph does not contain negative weight cycles.
This round is the Technical Interview Round. The interview duration will be of 1 hour and the questions will be asked on various topics related to the computer subjects and followed by 1 or 2 coding questions and SQL Query.



1. Constructor:
It initializes the data members(queues) as required.
2. push(data) :
This function should take one argument of type integer. It pushes the element into the stack and returns nothing.
3. pop() :
It pops the element from the top of the stack and, in turn, returns the element being popped or deleted. In case the stack is empty, it returns -1.
4. top :
It returns the element being kept at the top of the stack. In case the stack is empty, it returns -1.
5. size() :
It returns the size of the stack at any given instance of time.
6. isEmpty() :
It returns a boolean value indicating whether the stack is empty or not.
Query-1(Denoted by an integer 1): Pushes an integer data to the stack. (push function)
Query-2(Denoted by an integer 2): Pops the data kept at the top of the stack and returns it to the caller. (pop function)
Query-3(Denoted by an integer 3): Fetches and returns the data being kept at the top of the stack but doesn't remove it, unlike the pop function. (top function)
Query-4(Denoted by an integer 4): Returns the current size of the stack. (size function)
Query-5(Denoted by an integer 5): Returns a boolean value denoting whether the stack is empty or not. (isEmpty function)
Operations:
1 5
1 10
2
3
4
Enqueue operation 1 5: We insert 5 at the back of the queue.
Queue: [5]
Enqueue operation 1 10: We insert 10 at the back of the queue.
Queue: [5, 10]
Dequeue operation 2: We remove the element from the front of the queue, which is 5, and print it.
Output: 5
Queue: [10]
Peek operation 3: We return the element present at the front of the queue, which is 10, without removing it.
Output: 10
Queue: [10]
IsEmpty operation 4: We check if the queue is empty.
Output: False
Queue: [10]



It was HR Round
Tell Us About Yourself
Tip 1 : Prepare you introduction with educational qualification
Tip 2 : Include your technical skills
Tip 3 : Include your projects
Why Do You Want to Work for Nagarro?
Tip 1 : you do have to explain why you want the job in a specific role or field
Tip 2 : the interviewer about the job description that matches your skill and the principles that are followed by the company, and how that suits you.
What is your greatest strength?
Tip 1 : A skill that’s perfect for one job may be completely irrelevant for another role.
Tip 2 : When you’re asked what your greatest strength is, you can either quickly mention something specific or dig a little deeper by explaining how you’ve flourished in a particular environment.
On which platform you are active for coding practice
Tip 1 : Give your answer with any platform but give with honesty because they can see the profile.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?