Tip 1 : Practise previous year aptitude questions from GS for pattern knowing. Helps a lot. Like a lot.
Tip 2 : Upskill your aptitude, first round is the hardest.
Tip 3 : Maths is very important for both the two OA rounds.
Tip 1 : Be honest with your resume. They ask questions pertaining to that.
Tip 2 : Skills should be mentioned precisely. They will ask questions about it then.
Consisted of aptitude questions and maths. Quite tough. 66 questions in 90 mins. +5 for correct and -2 for incorrect.
Had a window of 30 minutes to start the test at 4 pm.
Login window of 30 mins at 5:30 pm.
+5 for correct and -2 for incorrect in MCQs.
There were 4 sections:
1. Numerical computation
2. Coding (2 questions)
3. English section having 2 questions essay type
4. Technical MCQs about output in JAVA, OOPS, OS, etc.
There were time limit for each section, you couldn't move to the next section until you complete the first.



Just created a list of words. Traverse the list. If the letter is desirable, add to a list.
Traverse keyboard and turn it to * accordingly.


I simply stored word length and profit in a max Heap based on profit.
tried greedy approach where max profit word was taken and length+1 was subtracted from the word limit until no more space is left or no more words can be fit
3 interview rounds were scheduled on the same day. If you clear one, you are moved on to the next. Else, you are told to leave the call.
Was conducted on zoom. A common room was made for all. Breakrooms were made for the interviews and we were moved there when our turn came.



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.
Just find the min Value possible and find the difference with the further days. Store the days used and keep a min variable for use.



1. Buying a stock and then selling it is called one transaction.
2. You are not allowed to do multiple transactions at the same time. This means you have to sell the stock before buying it again.
Input: ‘n’ = 7, ‘prices’ = [3, 3, 5, 0, 3, 1, 4].
Output: 6
Explanation:
The maximum profit can be earned by:
Transaction 1: Buying the stock on day 4 (price 0) and then selling it on day 5 (price 3).
Transaction 2: Buying the stock on day 6 (price 1) and then selling it on day 6 (price 4).
Total profit earned will be (3 - 0) + ( 4 - 1) = 6.
maintained two variables min1 min2 to store the min buying amount and calculated all corresponding profit. Made sure same day transaction wasn't possible.
40 minutes I was quizzed on OOPS/DBMS/OS questions. I was asked java questions too. The interviewer just wanted to check my fundamental concepts.
Design a URL shortener. What DS would you use for this
Tip 1 : Practice system design questions
Tip 2 : Know your OS and JAVA
Tip 3 : Learn about real life applications of all DS
My turn came around 1 pm. It was on zoom. I was asked to answer and write some SQL queries pertaining to joins. It was more or less easy. The interviewer was quite friendly.
I was also asked one coding question for which I gave a good optimised solution, interviewer seemed happy.
I also answered some basic OS stuff I was asked.



[2,3,4] - median is 3.
[2,3] - median is floor((2+3)/2) = 2.
1. Used two PQs, minHeap and maxHeap.
2. We just need the middle number for median in a sorted array, Heaps helped keep array sorted.
3. Use maxHeap to store left elements, minHeap to store right elements
4. if Size of both is same, median is average of the top of both
5. If size is different, we take the top most element on the greater side.
Was asked SQL queries by being given two tables. Was asked to perform inner join and return these 3 columns based on these conditions.
Tip 1 : Practice SQL queries
Tip 2 : Practice Leetcode, most questions asked are common in there
Tip 3 : Be good with OS fundamentals and JAVA theory

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?