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

SDE - 1

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

Interview preparation journey

expand-icon
Preparation
Duration: 4 months
Topics: Stacks,Queue, Dynamic Programming, Graph, Heaps
Tip
Tip

Tip 1 : Rather than focusing on quantity of questions focus on covering all topics
Tip 2 : Do atleast 1-2projects
Tip 3 : Mainly focussed on DSA

Application process
Where: Campus
Eligibility: 6.5
Resume Tip
Resume tip

Tip 1 : Donot write something which you have not worked on
Tip 2 : Be genuine

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 mins
Interview date1 Dec 2019
Coding problem1

1. Magic Park

Hard
40m average time
60% success
0/120
Asked in companies
SAP LabsDelhiveryDirecti

Bob came to a magic aqua park. In this magic aqua park, There are N props. Each prop is a non-horizontal and non-vertical segment. So when Bob falls on the segment, he starts sliding on it, and when he reaches its lowest point, he continues falling vertically. Then he can fall on another segment and so on until he reaches the water. He knows his initial X coordinate, and he is at a very high altitude. Help Bob to find his final X coordinate.

For Example:
Input
4 2
0 1 2 2
2 4 4 5


Output 
0

Explanation:
Here, Bob will first fall on the second prop, and he will travel till endpoint 2. Then he will fall on the first prop and travel till the endpoint 0. hence the final position will be X = 0. 
Try solving now
02
Round
Medium
Face to Face
Duration45 mins
Interview date2 Dec 2019
Coding problem2

1. Convert Min Heap To Max Heap

Moderate
25m average time
75% success
0/80
Asked in companies
AmazonSAP LabsOLX Group

You are given an array of size ‘N’ which is an array representation of min-heap.


You need to convert this min-heap array representation to a max-heap array representation. Return the max-heap array representation.


For Example
Corresponding to given min heap : [1,2,3,6,7,8]

It can be converted to the following max heap: [8,7,3,6,2,1]

Try solving now

2. Convert a binary tree to its sum tree

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

Given a binary tree of integers, you are supposed to modify the given binary tree to a sum tree where each node value is replaced by the sum of the values of both left and right subtrees in the given tree. The value of leaf nodes is changed to zero.

Example:
Below is the example showing the input tree and its sum tree.  

alt text

Problem approach

1.Similar to postorder traversal iteratively find the sum in each step
2.Return left + right + current data if left + right is equal to current node data
3.Else return -1

Try solving now
03
Round
Medium
Face to Face
Duration45 mins
Interview date2 Dec 2019
Coding problem2

1. Puzzle

You have 9 balls, equally big, equally heavy - except for one, which is a little heavier.
How would you identify the heavier ball if you could use a pair of balance scales only twice?

2. OS Problems

Questions on gateway,caching,etc.(Subjective)

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 - 1
3 rounds | 3 problems
Interviewed by SAP Labs
2657 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 5 problems
Interviewed by SAP Labs
867 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 2 problems
Interviewed by SAP Labs
1753 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 5 problems
Interviewed by SAP Labs
1080 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
115097 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
58238 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
35147 views
7 comments
0 upvotes