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

Developer Associate

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

Interview preparation journey

expand-icon
Preparation
Duration: 3 months
Topics: Data Structures, Java, JavaScript, Database Management, Algorithms
Tip
Tip

Tip 1 : Solve a lot of questions(mostly medium level)
Tip 2 : Prepare for questions which can be asked on your projects
Tip 3 : Prepare for questions which can be asked o your current experience

Application process
Where: Referral
Eligibility: No creiteria
Resume Tip
Resume tip

Tip 1 : Know every technology/project you mention in resume
Tip 2 : Use a good format which is easy to read

Interview rounds

01
Round
Medium
Video Call
Duration60 mins
Interview date16 May 2022
Coding problem2

1. Trapping Rain Water

Moderate
15m average time
80% success
0/80
Asked in companies
RazorpayMorgan StanleyUber

You have been given a long type array/list 'arr’ of size 'n’.


It represents an elevation map wherein 'arr[i]’ denotes the elevation of the 'ith' bar.



Note :
The width of each bar is the same and is equal to 1.
Example:
Input: ‘n’ = 6, ‘arr’ = [3, 0, 0, 2, 0, 4].

Output: 10

Explanation: Refer to the image for better comprehension:

Alt Text

Note :
You don't need to print anything. It has already been taken care of. Just implement the given function.
Problem approach

Firstly gave brute force solution, traverse the array and for each element, find the highest elevation on left and right of that element. Take smaller of that and find its difference with current height. This much water will be stored at that element. Similarly, calculate for all and sum it.

Then optimized this solution by pre-calculating the highest elevation on left and right and storing in left[] and right[] array. Then iterate through array and use pre-calculated values. Stored water = min(left[i], right[i])- A[i]. If the answer is less than 0, then use it as 0.

Try solving now

2. Most Frequent Element

Easy
0/40
Asked in companies
OLX GroupSAP LabsWalmart

Given an alphabetical string ‘S’. Return the most frequent character of ‘S’. If there are multiple characters with the same frequency equal to the maximal frequency, return the lexicographically smallest character with maximal frequency.

For example:
‘S’ = brutegroot
The most frequent characters are [o, r, t]. All of these characters appear 2 times each.
As among all the options, ‘o’ is lexicographically smallest. So the answer is ‘o’.
Hence output will be o.
Problem approach

First provided brute force solution of using 2 for loops. First loop iterates through array and for each element, inner loop again iterates array and find the frequency. Then it compares it with maximum frequency so far stored in another variable.

Then optimized the solution by using hash map. Iterate through array and increase count of each element. Then iterate through hash map and return key with max value.

Try solving now
02
Round
Medium
Video Call
Duration60 mins
Interview date18 May 2022
Coding problem2

1. System Design Question

Design Wending Machine.

Problem approach

Tip 1: Ask questions so that interviewer describes problem in detail
Tip 2: Write pseudocode
Tip 3: Perform error handling

2. DBMS based questions

SQL queries on an employee database.
Find second highest salary
Find employees who are working in more than 1 project

Problem approach

Tip 1 : Practice all SQL operations like Joins, subqueries etc

03
Round
Medium
Video Call
Duration40 mins
Interview date23 May 2022
Coding problem1

Managerial round. 
A few questions on Operating system were asked. Then some basic questions regarding cloud(because I have a AWS certification which I mentioned in resume). Questions on current experience and why looking to change.

1. OS based questions

What is a program?
What is a process?
What is a thread?
How is scheduling performed?
What is Round Robin?

Problem approach

Tip 1 : Revise basic OS concepts

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