Tip 1 : Do good research about the company and recruiters. Research the company you are interviewing for thoroughly. Also, if you know your interviewer beforehand, follow on LinkedIn to know more about their work.
Tip 2 : Most of the HR questions didn’t require any preparation but the recollection of your past journey would be an excellent option because if you can co-relate the question asked in the interview to the real-life situation which has occurred before, there are decent chances of yours getting selected.
Tip 3 : Make a document where you can add answers to those questions which you think the interviewer can ask you about your resume. Like your introduction, Descriptions of your projects, Why do you want to join XYZ company, What are your strengths and weaknesses, etc
Tip 1 : Do not lie on your resume or try to cheat in the interview. Write only those things in your resume that you are confident about.
Tip 2 : Add at least 2 mid-level projects and also add there GitHub link
Online Test was scheduled on 5th Sept, 9:00 am. It was conducted on Talent Central (which is SHL's proctored platform). Around 200+ students have registered for the Online Test. The test duration was 45 minutes consisting of two coding questions.



The order of elements in the resulting array is not important.
Let the array be [1, 2, -3, 4, -4, -5]. On rearranging the array such that all negative numbers appear before all positive numbers we get the resulting array [-3, -5, -4, 2, 4, 1].
Step 1: Traverse the elements in the array one by one.
Step 2: For each element, check if the element is less than 0. If it is, then increment the count of negative elements.
Step 3: For each element, check if the element is greater than 0. If it is, then increment the count of positive elements.
Step 4: Print the count of negative and positive elements.



Input: 'n' = 7, 'x' = 3
'arr' = [1, 1, 1, 2, 2, 3, 3]
Output: 2
Explanation: Total occurrences of '3' in the array 'arr' is 2.
Step 1: Use Binary search to get the index of the first occurrence of x in arr[]. Let the index of the first occurrence be i.
Step 2: Use Binary search to get the index of the last occurrence of x in arr[]. Let the index of the last occurrence be j.
Step 3: Return (j – i + 1);
Usually, SAP Labs asked questions mainly based on OOPS, DBMS, Low-Level Design using OOP, and Database Design using SQL Queries. But be prepared with all the CS Subjects because you never know what the interviewer will ask you during the interview.
Technical Round I was scheduled for 8th Sept, 9:30 am. It was conducted on Microsoft Teams.



1. For all such levels where there is only one corner node the leftmost and the rightmost nodes are the same.
2. In the output, you have to print the leftmost and rightmost values in level order fashion i.e, the leftmost node of level1 followed by the rightmost node of level1 followed by the leftmost node of level2 followed by the rightmost node of level2 and so on.
1. Declare a queue to store a pointer to tree nodes;
2. Declare store=0 which will print the rightmost node;
3. Declare temp to store DeQueued element from queue ;
4. Declare count=0 which will help to print the leftmost node;
5. Print the root->data first
6. IF (root->left)
EnQueue (q,root->left);
IF (root->right)
EnQueue (q,root->right);
EnQueue (q, NULL); //to indicate end of first level (root only)
7. While(q is not empty){
temp=DeQueue(q);
Increment count;
//temp is not NULL && temp is pointer to the first node (leftmost)
IF(temp && count==1)
Print temp->data;
ELSE IF(temp) //for other nodes rather than the leftmost one
store=temp->data; //update store each time with latest node value
END IF-ELSE
IF (temp==NULL) //end of previous level
IF (q is not empty)
EnQueue(q,NULL);
END IF
count=0; //re-define countas 0 for next level
Print store; //store consist of rightmost of last level node value
ELSE
IF(temp->left is not NULL)
EnQueue(q, temp->left);
IF(temp->right is not NULL)
EnQueue(q, temp->right);
END IF-ELSE
END WHILE
END FUNCTION



The given linked list is 1 -> 2 -> 3 -> 4-> NULL. Then the reverse linked list is 4 -> 3 -> 2 -> 1 -> NULL and the head of the reversed linked list will be 4.
Can you solve this problem in O(N) time and O(1) space complexity?
1) Divide the list into two parts - the first node and the rest of the linked list.
2) Call reverse for the rest of the linked list.
3) Link rest to first.
4) Fix head pointer
What is the difference between process and threading?
Tip 1: For Operating System, I have used Love Babbar CheatSheet, InterviewBit, and Gate Smashers OS Playlist. You can also refer Sanchit Jain Playlist
Tip 2: Try to answer exactly and with some example
Technical Round II was scheduled for 8th Sept, 11:45 am. It was conducted on Microsoft Teams.
Make a database for the college system.
Tip 1: For DBMS, I have used Love Babbar CheatSheet, Tutorialspoint, and Javatpoint.
Tip 2: You can also use Hackerrank for SQL query practice.
What is operator overloading and overriding?
First I gave him a definition and then I gave him an example explaining the difference between operator overloading and overriding.
What are recursion and their types with code?
I only know three types of recursion and he was satisfied with them.
The HR round is to judge your personality, your strengths, your weaknesses, your capability to handle the role, to check your background, and to understand if you're the right fit for this job.
HR Round was scheduled for 8th Sept, 3:10 pm. It was conducted on Microsoft Teams.
Introduce yourself
Tip 1 : Try to add all the summaries of your resume in 2-3 lines.
Tip 2 : Tell something different than your resume.
Asked me about my schooling life
Tip 1 : So first I started with my primary school life and told her about all the achievements I have made during my schooling year, then I moved to my high school life and told her how I prepare for JEE and MHT CET.
Tip 2 : Try to prepare for such questions beforehand.
Why do you want to join SAP labs?
Tip 1 : Do good research about the company and recruiters. Research the company you are interviewing for thoroughly.
Tip 2 : Also, if you know your interviewer beforehand, follow on LinkedIn to know more about their work.

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?