Tip 1 : Focus more on problem solving
Tip 2 : Effective communication skills are a must
Tip 1 : Keep the resume short, simple and concise
Tip 2 : Highlight important achievements like certifications and projects
The coding round had an attempt window of 8 hours from 12 pm to 8pm and it had 2 coding questions.



Sorting each row of the array and picking up the maximum element from each of them to get the maximum sum.



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]
Make sure that newly entered element is always at the front of ‘q1’, so that pop operation just dequeues from ‘q1’. ‘q2’ is used to put every new element at front of ‘q1’.
It was a round which revolved around Data Structures. 2 questions were asked in this round.



It was pretty straightforward I used 3 loops to count the pairs according to the condition



The given singly linked list is 6 -> 5 -> 3 -> 4 -> 7 -> 1 -> 2

The modified linked list should have all even values in starting and odd values in the end.
I iterated on the linked list maintaining 2 heads and then merged the linked list using them and lastly set the head of the even linked list to Null
It was a Data Structure based round. One pattern based question and one normal coding question were asked



Input: ‘n’ = 7, ‘prices’ = [100, 80, 60, 70, 60, 75, 85]
Output: [1, 1, 1, 2, 1, 4, 6]
Explanation:
On the sixth day, when the stock price was 75,
The span came out to be 4 because the last three prices(plus today) were less than the current or the sixth day's price.
Similarly, we can deduce the remaining results.
You don’t need to print anything. Just implement the given function
I used stack to solve this problem.




Used for loops for this question
It was a general discussion round with the HR. He just started by giving up his introduction and then asked for mine. He then followed the introduction with basic HR Questions
Tip 1 : Be frank, don't hesitate to ask anything from manager
Tip 2 : Good communication skills are the key to this round

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?