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

SDE - Intern

SAP Labs
upvote
share-icon
4 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6 month
Topics: Array, String, DP, Stack and Queue, Graph
Tip
Tip

Tip 1 : Practice quality questions
Tip 2 : Must have at least 1 project and you should know how it works
Tip 3 : Be confident in the interviews

Application process
Where: Campus
Eligibility: Above 7 CGPA
Resume Tip
Resume tip

Tip 1 : Having at least 1 project will let you stand out
Tip 2 : Put some achievements like you got a good rank in a coding contest

Interview rounds

01
Round
Medium
Online Coding Test
Duration60 Minutes
Interview date28 Aug 2021
Coding problem2

Online coding round:-

There was a coding question which has to be solved in 60 minutes. Difficulty level was medium

I was able to solve both these questions in 30 minutes so was able to clear the OA round .
About 12 students moves to next round.

1. Merge Intervals

Moderate
20m average time
80% success
0/80
Asked in companies
InnovaccerIntuitFacebook

You are given N number of intervals, where each interval contains two integers denoting the start time and the end time for the interval.

The task is to merge all the overlapping intervals and return the list of merged intervals sorted by increasing order of their start time.

Two intervals [A,B] and [C,D] are said to be overlapping with each other if there is at least one integer that is covered by both of them.

For example:

For the given 5 intervals - [1, 4], [3, 5], [6, 8], [10, 12], [8, 9].

Since intervals [1, 4] and [3, 5] overlap with each other, we will merge them into a single interval as [1, 5].

Similarly, [6, 8] and [8, 9] overlap, merge them into [6,9].

Interval [10, 12] does not overlap with any interval.

Final List after merging overlapping intervals: [1, 5], [6, 9], [10, 12].
Try solving now

2. Make It Palindrome

Easy
25m average time
70% success
0/40
Asked in companies
SAP LabsAmazonWestern Digital

You are given an array ‘A’ of length ‘N’ consisting only of positive integers. Your task is to make the given array a palindrome by using a minimum number of operations. In one operation, you can select two adjacent indexes and merge them by adding their values. After every operation, the length of the array decreases by one.

Note: An array of length ‘1’ is a palindrome.

For example:

Let’s say the array ‘A’ = [1, 2, 3, 4, 5], then after merging indexes 2 and 3, the array ‘A’ will look like [1, 5, 4, 5].
Try solving now
02
Round
Medium
Video Call
Duration60 Minutes
Interview date27 Aug 2021
Coding problem1

1st interview round

First he introduced himself and i was asked to do the same and them immediately went to ask the questions.He asked me whether i have studied oops or not.Then he asked some
questions on oops.
What is inheritance?
Types of inheritance
why java doesn't support multiple inheritance?
Practical use of OOPs

After that interview ended...After some time we got the result of 1st round and total 8 people were get selected for next round.

1. Sort 0 1 2

Easy
22m average time
0/40
Asked in companies
Expedia GroupWalmartHCL Technologies

You have been given an integer array/list(ARR) of size 'N'. It only contains 0s, 1s and 2s. Write a solution to sort this array/list.

Note :
Try to solve the problem in 'Single Scan'. ' Single Scan' refers to iterating over the array/list just once or to put it in other words, you will be visiting each element in the array/list just once.
Try solving now
03
Round
Medium
Video Call
Duration70
Interview date27 Aug 2021
Coding problem1

2nd round

First she introducedd herself and asked to do the same
Asked whether i have studied oops or not.Then ask me about singleton class..about its defination and how to declare it and asked me to code it.
virtual functions
About trees..
threaded tree
types of traversal in tree

1. Check if two trees are Mirror

Easy
15m average time
85% success
0/40
Asked in companies
SamsungHCL TechnologiesQualcomm

You are given two arbitrary binary trees consisting of N and M number of nodes respectively, your task is to check whether the two trees are mirror of each other or not.

Two trees are said to be mirror of each other, if

1. Roots of both the given trees are same.
2. Left subtree of the root of the first tree is the mirror of the right subtree of the root of the second tree.
3. Right subtree of the root of the first tree is the mirror of the left subtree of the root of the second tree.

For example,both the given trees are mirror image of each other: example

Try solving now
04
Round
Easy
HR Round
Duration30 Minutes
Interview date27 Aug 2021
Coding problem0

3rd round (last round ) HR round

she introduced herself and ask me to do the same
She told me thats she'll not be asking technical questions here.. it will be simply a formal discussion about you.
She asked me my native place...My native place was same as where mmy college is. So asked me any specific reason to choose this college why not other college..
Do i have any issue with location i.e will you be comfortable with any location given or not
What you know about company
What comes to your mind when you here the name of SAP Labs

And at last asked me whether i have any question to ask or not

So always ask some question in such a case because this shows that you are interested in the comapany.

After 2 hours thet declared the result and all of them have given the internship offer (all 6 people).

Here's your problem of the day

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

Skill covered: Programming

How do you remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
company logo
SDE - Intern
4 rounds | 11 problems
Interviewed by SAP Labs
1568 views
0 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by SAP Labs
2137 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by SAP Labs
900 views
0 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 8 problems
Interviewed by SAP Labs
1901 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
15606 views
4 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
15500 views
1 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
10216 views
2 comments
0 upvotes