Tip 1 : Strengthen communication skills
Tip 2 : Keep revising
Tip 3 : Keep reading interview experiences
Tip 1 : Don't write anything which you don't know
Tip 2 : Keep it short and concise, mention details of project with links
It was online coding round which had 3 questions from medium to hard difficulty. It was conducted around 7pm



Input: 'a' = [7, 12, 1, 20]
Output: NGE = [12, 20, 20, -1]
Explanation: For the given array,
- The next greater element for 7 is 12.
- The next greater element for 12 is 20.
- The next greater element for 1 is 20.
- There is no greater element for 20 on the right side. So we consider NGE as -1.
Use a stack to find the next greater element suppose that is present at the index ind then find the next greater element that is at least (nums[cur] + x) using a segment tree in the range [ind + 1, n].
Expected time complexity: O(nlogn)



fib(0) = 0
fib(1) = 1
fib(n) = fib(n-1) + fib(n-2), n >= 2, where fib(n) represents the nth fibonacci number.


1 ‘X’ N: Enqueue element ‘X’ into the end of the nth queue. Returns true if the element is enqueued, otherwise false.
2 N: Dequeue the element at the front of the nth queue. Returns -1 if the queue is empty, otherwise, returns the dequeued element.
Please note that Enqueue means adding an element to the end of the queue, while Dequeue means removing the element from the front of the queue.
It was 1st technical round, interviewer focused on problem solving skills and projects.It lasted for 60 minutes



Input:
‘ARR’ = [-6,-3, 2, 1, 5]
If we take a square of each element then the array/list will become [36, 9, 4, 1, 25].
Then the sorted array/list will be [1, 4, 9, 25, 36].
Output :
[1, 4, 9, 25, 36].
iterate through the initial sorted array, and squaring every element.
After the loop finishes, we sort the new array since there are no negative numbers.



Order of return of diagonal path’s array/vector: The rightmost diagonal path must come first, and so on.
Every parent node comes first then the child node. In other words, return the diagonal element from top to bottom.
Consider the given binary tree.

There are 4 diagonal paths:
1 3 6
2 5 9
4 8
7
You need to return ‘1 3 6 2 5 9 4 8 7’.
Let's consider this example

Diagonal paths are:
1 3 6
2 5
4
You need to return ‘1 3 6 2 5 4’.
Used a recursive approach to solve this, solution is available on various platforms
It was 2nd technical round , it consisted 2 questions based on DSA



1. A word is a sequence of one or more lowercase characters.
2. Words are separated by a single whitespace character.
For the given string 'A' = “coding ninjas coding ninjas” and 'B' = “data structures and algorithms”, so both the word 'coding' and 'ninjas' are not present in string 'B' and occur two times each, but the word “coding” is lexicographically smaller than the word “ninjas”. So the answer is “coding”.



It was HR round focusing on communication skills and thinking capability.
How was the college journey, future expectations, why should we hire you.
Tip 1 : Be confident
Tip 2 : Have good communication skills
Tip 3 : Ask some questions about the company to show interest.

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