Tip 1 : Must do Previously asked Interviews as well as Online Test Questions.
Tip 2 : Must have good knowledge of DSA
Tip 3 : Do at least 2 good projects and you must know every bit of them.
Tip 1 : Have at least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects, and experiences more.
It was a proctored test. Did not have any start or end date. only duration was given of 90 minutes



ALL BASIC CASES NEED TO BE COVERED AND LOGIC WAS MADE ACCORDING TO THAT



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.
The interview was taken on google meet. timings were 6 to 7 interviewer was very friendly helped whenever i got stuck. there were 2 dsa questions asked. 2 one was the variation of first



You can’t sell without buying first.
For the given array [ 2, 100, 150, 120],
The maximum profit can be achieved by buying the stock at minute 0 when its price is Rs. 2 and selling it at minute 2 when its price is Rs. 150.
So, the output will be 148.
The logic to solve this problem is same as "max subarray problem" using Kadane's Algorithm. Since no body has mentioned this so far, I thought it's a good thing for everybody to know.
All the straight forward solution should work, but if the interviewer twists the question slightly by giving the difference array of prices, Ex: for {1, 7, 4, 11}, if he gives {0, 6, -3, 7}, you might end up being confused.
Here, the logic is to calculate the difference (maxCur += prices[i] - prices[i-1]) of the original array, and find a contiguous subarray giving maximum profit. If the difference falls below 0, reset it to zero.



You may make as many transactions as you want but can not have more than one transaction at a time i.e, if you have the stock, you need to sell it first, and then only you can buy it again.
The profit is the sum of sub-profits. Each sub-profit is the difference between selling at day j, and buying at day i (with j > i). The range [i, j] should be chosen so that the sub-profit is maximum:
sub-profit = prices[j] - prices[i]
We should choose j that prices[j] is as big as possible, and choose i that prices[i] is as small as possible (of course in their local range).
Let's say, we have a range [3, 2, 5], we will choose (2,5) instead of (3,5), because 2<3.
Now, if we add 8 into this range: [3, 2, 5, 8], we will choose (2, 8) instead of (2,5) because 8>5.
From this observation, from day X, the buying day will be the last continuous day that the price is smallest. Then, the selling day will be the last continuous day that the price is biggest.
Take another range [3, 2, 5, 8, 1, 9], though 1 is the smallest, but 2 is chosen, because 2 is the smallest in a consecutive decreasing prices starting from 3.
Similarly, 9 is the biggest, but 8 is chosen, because 8 is the biggest in a consecutive increasing prices starting from 2 (the buying price).
Actually, the range [3, 2, 5, 8, 1, 9] will be splitted into 2 sub-ranges [3, 2, 5, 8] and [1, 9].
The interview was held on google meet and the time duration was 60 minutes. the interviewer started with an introduction and told me he was technical lead in the company After that he started with basic oops, DBMS, and cn questions and moved on to 1 dsa problem
What is demand paging?
What are the advantages of a multiprocessor system?
What are the advantages of a multiprocessor system
Tip 1 : Be clear with the explanation
Tip 2 : If any question requires explanation use the resource that is provided for explaining
Tip 3 : Study the most important questions
What is normalization?
Describe the types of keys?
What is the Deadlock situation?
Tip 1 : Be clear with the explanation
Tip 2 : If any question requires explanation use the resource that is provided for explaining
Tip 3 : Study the most important questions



Given ‘N’ = 4, ‘Q’ = 1.
Then the answer is 10 because the sum of all integers between 1 and 4 are 1, 2, 3, and 4. Hence 1 + 2 + 3 + 4 is equal to 10.
Asked Basic Hr questions, Compensation and previous offers
Why do you want to join us?
What motivates you the most?
Discussion About the location, any other offers, and compensation.
Tip 1 : Be confident
Tip 2 : Read what the Company is working on and it's products
Tip 3 : Prepare Standard Hr questions

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