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

SDE - Intern

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

Interview preparation journey

expand-icon
Preparation
Duration: 6 months
Topics: Data Structures, OOPS, Operating Systems , Database Management System, Algorithms
Tip
Tip

Tip 1 : Do atleast 25 questions from each topic
Tip 2 : Revise basic concepts and most asked questions regularly 
Tip 3 : Focus on reason and not on result

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

Tip 1 : Do not put false things on resume
Tip 2 : Keep it short and crisp

Interview rounds

01
Round
Medium
Online Coding Interview
Duration60 minutes
Interview date3 Sep 2021
Coding problem2

The test was in the evening (5pm)
There were two coding questions( one easy and one medium), questions were different for everyone.

1. Sort an array in wave form

Easy
10m average time
85% success
0/40
Asked in companies
AmazonSAP LabsExpedia Group

You have been given an unsorted array ‘ARR’.

Your task is to sort the array in such a way that the array looks like a wave array.

Example:
If the given sequence ‘ARR’ has ‘N’ elements then the sorted wave array looks like - 
‘ARR[0] >= ARR[1]’ and ‘ARR[1] <= ARR[2]’
‘ARR[2] >= ARR[3]’ and ‘ARR[3] <= ARR[4]’
‘ARR[4] >= ARR[5]’ and ‘ARR[5] <= ARR[6]’  And so on.
Note:
1. ‘ARR[0]’ must be greater than or equal to ‘ARR[1]’.

2. There can be multiple arrays that look like a wave array but you have to return only one.

3. We have an internal function that will check your solution and return 'True' in case your array is one of the solutions otherwise return 'False'.

Explanation

The given array ‘ ARR = { 4, 3, 5, 2, 3, 1, 2 } ’
The below figure is a visual representation of the given ‘ARR’ and you can see we can express ‘ARR’ in a waveform array because 
4>3 and 3<5 
5>2 and 2<3
3>1 and 1<2
And it follows the condition of wave array.

subsequence

Follow up:
Try to solve this problem in linear time complexity.
Problem approach

Step 1: sort the array A[]={2,3,4,5,5,6,7,8}
Step 2: Now store in ans array with two-pointer approach 
one element from start and one from end and so on {2,8,3...

Try solving now

2. Find Number Of Islands

Moderate
34m average time
60% success
0/80
Asked in companies
WalmartShareChatAmazon

You are given a 2-dimensional array/list having N rows and M columns, which is filled with ones(1) and zeroes(0). 1 signifies land, and 0 signifies water.

A cell is said to be connected to another cell, if one cell lies immediately next to the other cell, in any of the eight directions (two vertical, two horizontal, and four diagonals).

A group of connected cells having value 1 is called an island. Your task is to find the number of such islands present in the matrix.

Try solving now
02
Round
Easy
Video Call
Duration90 minutes
Interview date6 Sep 2021
Coding problem2

It was a technical round

1. Implement Stack With Linked List

Moderate
30m average time
73% success
0/80
Asked in companies
AmazonMathworksDell Technologies

You must implement the Stack data structure using a Singly Linked List.


Create a class named 'Stack' which supports the following operations(all in O(1) time):


getSize: Returns an integer. Gets the current size of the stack

isEmpty: Returns a boolean. Gets whether the stack is empty

push: Returns nothing. Accepts an integer. Puts that integer at the top of the stack

pop: Returns nothing. Removes the top element of the stack. It does nothing if the stack is empty.

getTop: Returns an integer. Gets the top element of the stack. Returns -1 if the stack is empty
Try solving now

2. Frog Jump

Easy
30m average time
60% success
0/40
Asked in companies
MicrosoftDunzoCIS - Cyber Infrastructure

There is a frog on the '1st' step of an 'N' stairs long staircase. The frog wants to reach the 'Nth' stair. 'HEIGHT[i]' is the height of the '(i+1)th' stair.If Frog jumps from 'ith' to 'jth' stair, the energy lost in the jump is given by absolute value of ( HEIGHT[i-1] - HEIGHT[j-1] ). If the Frog is on 'ith' staircase, he can jump either to '(i+1)th' stair or to '(i+2)th' stair. Your task is to find the minimum total energy used by the frog to reach from '1st' stair to 'Nth' stair.

For Example
If the given ‘HEIGHT’ array is [10,20,30,10], the answer 20 as the frog can jump from 1st stair to 2nd stair (|20-10| = 10 energy lost) and then a jump from 2nd stair to last stair (|10-20| = 10 energy lost). So, the total energy lost is 20.
Try solving now
03
Round
Medium
Face to Face
Duration60 minutes
Interview date6 Sep 2021
Coding problem2

It was also a technical round
First there were questions regarding the project
Then Some Oops questions
Then discussion about sorting algorithms

1. OOPS Questions

General difference between Java and c++ oops?
What is polymorphism and why needed?
Difference between deep and shallow copy?
Copy constructor?
Questions about Virtual
Template classes

2. Sorting Algorithm based Questions

Write algo fro quick and merge sort
Perks of bubble and insertion sorting
Write heapify algo and discuss how heap sort works
Time and space complexity of count sort

04
Round
Easy
HR Round
Duration20 Minutes
Interview date6 Sep 2021
Coding problem1

General questions

1. Basic HR question

Tell me about your self 

Why you want this position at SAP labs 

Future Goals

Problem approach

Tip 1 : Be yourself
Tip 2 : Show interest in this position and organization

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 | 4 problems
Interviewed by SAP Labs
825 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by SAP Labs
899 views
0 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 8 problems
Interviewed by SAP Labs
1900 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
15605 views
4 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
15499 views
1 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
10216 views
2 comments
0 upvotes