Tip 1 : Being consistent with coding is the key
Tip 2 : Try to solve company specific coding questions
Tip 3 : In System Design ask questions
Tip 1 : Have a crisp and clear resume for specific roles
Tip 2 : Highlight all the major points in the resume
It was an online coding round can be given anytime anywhere.



Tip 1: Read arrays and time complexity
Tip 2: Analysis of the problem is must before coding
It was a F2F round virtually, involving questions from Java, OPPS Data structures. not a coding round
Using lambda expression find all the authors whose book is published by joining two tables
Tip 1: Learn Java 8
What is encapsulation.
Differences between checked and unchecked exception
What is garbage collection
What are maps and their internal working
Coding round



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]
Tip 1: read stacks and queues
Tip 2: don't directly jump to solving questions, discuss the approach with interviewer



Tip 1: Maintain the speed
Tip 2: Discuss the approach with interviewer
This was mostly techno managerial round. Where questions related to previous projects were asked and their design
Pick any of your previous project and give their LLD and HLD
Tip 1: Go through System Design questions
This was the HR round and also behavioural check round.
Why do you want to leave the previous company
Any existing offer
Why do you want to join SAP
what are your salary expectations?
Tip 1: Be confident in this round
Tip 2: Don't give any negative feedback

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?