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

Intern

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

Interview preparation journey

expand-icon
Journey
I started preparing for coding two months before the placement season. By doing so, I gained confidence in clearing the coding round. With a clear understanding of big data concepts, I am confident about clearing the interview.
Application story
Applied through the college portal. The placement cell will bring the company, which will give a PPT about the role during the internship. If we like it, we can apply.
Why selected/rejected for the role?
I answered the questions they asked, and they liked the way I explained. The interviewer gave me his feedback.
Preparation
Duration: 2 months
Topics: Data structures, coding questions, bigdata concept, machine learning algorithms,oops
Tip
Tip

Tip 1: Don't study code. Practice the code with your knowledge 
Tip 2: Try to see others' resumes and discuss with friends about their interview experience.

Application process
Where: Campus
Eligibility: Above 6 cgpa
Resume Tip
Resume tip

Tip 1 : Projects related to role.
Tip 2 : Try to be confident about what you put on your resume.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration45 Minutes
Interview date15 Apr 2022
Coding problem2

Online Test:
45 min and two coding question.

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.
Try solving now

2. Path with K Coins

Hard
45m average time
45% success
0/120
Asked in companies
SAP LabsD.E.ShawCodenation

The Ultimate Ninja Ankush is playing a game where he has a grid of ‘N’ * ‘M’ size and each block of the grid has some coins. The Ultimate Ninja ankush is carrying a knapsack that can fit only ‘K’ coins, and since he is very greedy, he wants to know the number of paths where he can collect exactly ‘K’ coins. He is initially at the top-left and wants to reach bottom-right

More formally, return the number of paths whose total sum of coins is equal to ‘K’ from 0,0 to ‘N - 1’, ‘M - 1’.

Note:
Since the answer can be very large print the answer modulo 10 ^ 9 + 7.

For example

Given:
‘N’ = 3, ‘M’ = 3
‘Grid[][]’ = [[5, 2, 5],
              [3, 3, 1],
              [3, 5, 1]]
‘K’ = 14.
The answer will be 1, since There is only 1 path that is from (0,0) to (0,1) to (0,2) to (1,2) to (2,2) this is because 5 + 2 + 5 + 1 + 1 = 14
Try solving now
02
Round
Easy
Telephonic
Duration30 minutes
Interview date16 Jun 2023
Coding problem1

Asked about practical application of data structures.

1. Technical Question

Spark related question: how we can store 100 GB files in spark?

03
Round
Easy
Telephonic
Duration30 Minutes
Interview date20 Jun 2023
Coding problem1

It was a managerial round. He explained the role and asked how I had dealt with some situations.

1. Technical Questions

How do I solve unknown problems, and what is my approach?

Normalization in DBMS. (Learn)
 

04
Round
Easy
Telephonic
Duration10 minutes
Interview date21 Jun 2023
Coding problem1

1. Basic HR Questions

Company basic details like where its headquarters is located.
When was it founded?

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
Senior Software Developer
4 rounds | 13 problems
Interviewed by SAP Labs
1864 views
0 comments
0 upvotes
company logo
Developer Associate
5 rounds | 8 problems
Interviewed by SAP Labs
2218 views
0 comments
0 upvotes
company logo
SDE - 2
5 rounds | 7 problems
Interviewed by SAP Labs
0 views
0 comments
0 upvotes
company logo
SDE - 2
3 rounds | 4 problems
Interviewed by SAP Labs
8825 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Intern
2 rounds | 2 problems
Interviewed by Microsoft
1499 views
0 comments
0 upvotes
company logo
Intern
2 rounds | 2 problems
Interviewed by Adobe
1019 views
0 comments
0 upvotes
company logo
Intern
3 rounds | 4 problems
Interviewed by Oracle
1298 views
0 comments
0 upvotes