SAP Labs interview experience Real time questions & tips from candidates to crack your interview

Developer Associate

SAP Labs
upvote
share-icon
5 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 2 months
Topics: Database Management System, Operating System, Bit Manipulation, Object Oriented Programming, Data Structures, Machine Learning basics
Tip
Tip

Tip 1 : Always tell what you are thinking to the interviewer, don’t be silent, be confident. Interviewer is more concerned with how you approach a question rather than just getting the solution. 
Tip 2 : Practice, practice and Practice. You have to code regularly. You won't remember the approach of a question if you just mentally solve it and don't code. Practicing will also enhance your speed on the day of the test.
Tip 3 : Just focus on your preparation. Don't bother yourselves by what others are doing. People may try to mislead you by concealing about their preparation.

Application process
Where: Campus
Eligibility: 7 cgpa
Resume Tip
Resume tip

Tip 1: Try to adjust it to one page. Don't include unnecessary details.
Tip 2: Try to use good templates present on the internet. My interviewer was quite impressed with my template.

Interview rounds

01
Round
Easy
Online Coding Interview
Duration60 mins
Interview date28 Jul 2019
Coding problem2

The first round was coding + mcq round. It was held in the campus in the afternoon. There were 10 mcqs based on the computer related subjects and 2 coding questions with around 10 test cases to be completed within 60 minutes. The questions were random for every person. 

1. Inorder Successor of a node in Binary Tree. Given a node x. Find it's inorder successor.

Moderate
30m average time
65% success
0/80
Asked in companies
SAP LabsInnovaccerAmazon

You have been given an arbitrary binary tree and a node of this tree. You need to find the inorder successor of this node in the tree.

The inorder successor of a node in a binary tree is that node that will be visited immediately after the given node in the inorder traversal of the tree. If the given node is visited last in the inorder traversal, then its inorder successor is NULL.

The inorder traversal of a binary tree is the traversal method in which for any node its left subtree is visited first, then the node itself, and then the right subtree.

Note
1. Each node is associated with a unique integer value. 

2. The node for which the successor is to be found is guaranteed to be part of the tree.
Try solving now

2. Find uncommon characters of the two strings. Given strings 'str1' and 'str2'. Return a string of characters which are present in either of them but not both.The strings contain only lowercase characters and can contain duplicates.

Moderate
25m average time
65% success
0/80
Asked in company
SAP Labs

Given two strings S1 and S2 of lowercase alphabets, find the list of uncommon characters for the two strings.

A character is uncommon if it is present only in one of the strings i.e. it is either present in S1 or S2, but not in both.

Note :
1. Both the strings contain only lowercase alphabets and can contain duplicates.

2. Return the uncommon characters in lexicographically sorted order. 
Problem approach

I used hashmap to solve this question. First store all the characters of str1 in a hashmap. Then traverse str2. If a character in str2 matches with the character in str1, remove that character from the hashmap, else add it to the hashmap. Now return a string containing all the characters in the hashmap.

Try solving now
02
Round
Medium
Face to Face
Duration30 minutes
Interview date20 Sep 2020
Coding problem2

I got selected for the interview. It was held 2 days after the coding round. First all the shortlisted students attended the company ppt. After that we went for the first interview. The interviewer was very friendly. He mainly asked about DBMS concepts and some coding questions.

1. What is Linked list and reverse the linked list iteratively.

Moderate
15m average time
85% success
0/80
Asked in companies
IBMQuikrMicrosoft

Given a singly linked list of integers. Your task is to return the head of the reversed linked list.

For example:
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.
Follow Up :
Can you solve this problem in O(N) time and O(1) space complexity?
Problem approach

Step 1: I gave all the information about linked list like how it is stored, how we iterate it, etc.
Step2 : Then i gave the iterative approach on reversing the linked list. Basically we need to take three pointers, curr, prev and next. Initialize prev as NULL, curr as head and next as NULL.Then we will iterate through the linked list. In each iteration, do following.
// Before changing next of current.store next node
next = curr->next
.
Now change next of current
// This is where actual reversing happens
curr->next = prev

// Move prev and curr one step forward
prev = curr
curr = next

I had done this question previously. Hence I was able to come up with an answer quickly. But don't worry if you don't come up with an answer in the first go. Interviewer just wanna see how you approached the problem.

Try solving now

2. The interviewer first asked what is RDMS and then asked me to make a table for the admissions office database.

He then asked me about its normal form. And subsequently asked me to convert it into bcnf normal form step by step.

Problem approach

Tip 1:Understand the question clearly. If you don't get it, don't feel hesitant to ask the interviewer to clarify the question.
Tip 2: Be vocal about whatever is going on in your mind regarding the approach.
Tip 3: Try to optimize your solution eventually.

03
Round
Hard
Face to Face
Duration40 mins
Interview date30 Jul 2019
Coding problem1

Soon, after the first interview, I got shortlisted for the second interview. I went to the interviewer. At first, he just asked me about my hobbies.Subsequently, he took a look at my CV and asked me to explain the projects on which I had worked on in my internship. After that, he asked about whether I know Java on which I said no. Then he asked me some concepts of OOPS and a problem on inheritance and classes.

1. Explain inheritance to a layman with an example.

Make a class using inheritance implementing the database of a system where each object must work on the same database maintaining consistency and mutual exclusion.

Problem approach

Tip 1: Take some time to think. The interviewer is not in a hurry.
Tip 2: Convey to the interviewer whatever is coming to your mind.
Tip 3: It is okay not to get to the answer. The interviewer will focus more on your approach,

04
Round
Easy
Face to Face
Duration15 mins
Interview date30 Jul 2019
Coding problem1

After an hour of the second interview, I was called for the managerial round. The manager first asked me to introduce myself and then he just asked me my job location preference whether it is bangalore or gurgaon. He then asked are you satisfied with the pay we are offering. At the end, he asked me what approach can we use to count hair on our head.

1. What approach can we use to count hair on our head.

Problem approach

Tip 1: Count hair on a small part of head
Tip 2: Combine the results from small parts of head
Tip 3: At the end, you will get the final answer.

05
Round
Easy
Face to Face
Duration15 mins
Interview date30 Jul 2019
Coding problem0

After the managerial round, I was called for the HR round. The HR just asked general questions about my future goals, 

Why I wanna join SAP? 

Am I okay with any job location whether it is bangalore/pune/hyderabad/gurgaon/mumbai. 

At last he just asked me if I have any questions to which I said no. 

He said all the best and by the end of day, I got the news that I have been finally selected.

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

What is recursion?

Choose another skill to practice
Similar interview experiences
company logo
Developer Associate
5 rounds | 8 problems
Interviewed by SAP Labs
2169 views
0 comments
0 upvotes
company logo
Developer Associate
3 rounds | 7 problems
Interviewed by SAP Labs
1162 views
0 comments
0 upvotes
company logo
Developer Associate
4 rounds | 12 problems
Interviewed by SAP Labs
1043 views
0 comments
0 upvotes
company logo
Developer Associate
1 rounds | 2 problems
Interviewed by SAP Labs
1663 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Developer Associate
3 rounds | 4 problems
Interviewed by Amdocs
0 views
0 comments
0 upvotes