Tip 1 : Be confident, clear and calm with the answers during interview
Tip 2 : Practice coding questions on based on different difficulty
Tip 3 : Prepare the topics thoroughly the questions might not be tough but they would be based on the core concept
Tip 4 : You should have at least 2 projects - JAVA and database related or Data Analytics
Tip 1 : Projects are mandatory you can steer the interview in that direction
Tip 2 : Resume should only have what you actually know and did
Tip 3 : Add extra-curriculars (for Sapient it really matters if you have incidents related team building, leadership, conflict resolution experiences)
It was in the morning. It had basic questions and 2 programming questions(1 string and 1 Data Structure)


A
BC
CDE
DEFG



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]
My interviewer asked me about my projects and the concepts involved in making it. Then he asked me to solve a string problem which was not very difficult followed by basic questions on array and it's properties. He also asked HTML tags.



If the given string is: STR = "abcde". You have to print the string "edcba".
Try to solve the problem in O(1) space complexity.
This round for Sapient was based on it's core values and how I've implemented these once or more in life. It mostly involved discussion around my leadership, team player, problem solving and innovative skills as a part of the clubs in college. Also, what are my expectations from Sapient and what I bring to them
An instance where I resolved a conflict
An instance of my leadership skills
An instance where I brought or implemented a new idea and how it went
An instance where I made a mistake and what I learnt from it
An instance where I had a difference of opinion and how I handled it
Tip 1 : Be calm and support your skills with instances
Tip 2 : Make sure to tell the truth, lieing would lead to fumbling and loss of credibility
Tip 3 : Read their core values and remember it during the interview

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?