Tip 1 : Have atleast 2-3 college project
Tip 2 : Be confident
Tip 3 : practice atleast 200 dsa question
Tip 1 : Be clear and properly aligned
Tip 2 : Have some college projects
This round consists of 50 MCQs in the C++ programming language. The time duration was 50 minutes. There was no negative marking for wrong answers. The test had 30 questions on OOPs, STL, programming fundamentals, and 20 simple out-based questions.



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.



If the given sequence ‘ARR’ has ‘N’ elements then the sorted wave array looks like -
‘ARR[0] >= ARR[1]’ and ‘ARR[1] <= ARR[2]’
‘ARR[2] >= ARR[3]’ and ‘ARR[3] <= ARR[4]’
‘ARR[4] >= ARR[5]’ and ‘ARR[5] <= ARR[6]’ And so on.
1. ‘ARR[0]’ must be greater than or equal to ‘ARR[1]’.
2. There can be multiple arrays that look like a wave array but you have to return only one.
3. We have an internal function that will check your solution and return 'True' in case your array is one of the solutions otherwise return 'False'.
The given array ‘ ARR = { 4, 3, 5, 2, 3, 1, 2 } ’
The below figure is a visual representation of the given ‘ARR’ and you can see we can express ‘ARR’ in a waveform array because
4>3 and 3<5
5>2 and 2<3
3>1 and 1<2
And it follows the condition of wave array.

Try to solve this problem in linear time complexity.
This is a technical round and they asked good level of coding questions



The ‘ARR’ = [1, 2, -3, -4, 5], the subarray [5, 1, 2] has the maximum possible sum which is 8. This is possible as 5 is connected to 1 because ‘ARR’ is a circular array.



This round is about hr round where they ask about your personality
What is your biggest achievement so far?
I have achieved several milestones to date in my career as a software developer. The most recent one is of the time when we were working on a critical component of a product pertaining to customer payments. We were working round the clock for around 2 months and I was a core developer. I was made a lead to this component for completing the task in another 2 months.
Where do you see yourself in 5 years?
You might be tempted to answer honestly by saying things about your plans for higher studies, your plans to start a startup, your plans of becoming a hiring manager in the company or if you don’t have a plan then you are simply tempted to say you don’t have a plan at all. These are the things the interviewer doesn’t want to hear and hence avoid giving such answers.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which SQL clause is used to specify the conditions in a query?