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

Developer Associate

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

Interview preparation journey

expand-icon
Preparation
Duration: 4 months
Topics: Data Structures, Algorithms, System Design (Basic), Networking, Operating Systems, DBMS, C++ OOPS, JAVA OOPS
Tip
Tip

Tip 1 : Prepare thoroughly deeply but never forget to revise. It's absolutely crucial.
Tip 2 : Don't fear interviewers. Always keep this mindset that they are there to recruit you not reject you.
Tip 3 : Do give regular contests to keep your time stress habit in check.

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

Tip 1 : Keep resume till one page.
Tip 2 : Have multiple projects/internships. Something to talk about during interviews. This give positive reflection about your work experience to the interviewer.
Tip 3 : Highlight your work in terms of quantitative values. Numbers are highly valuable on a resume.
Tip 4 : Keep resume format simple, clean and clutter free.
Tip 5 : Never lie on your resume. Interviewer will definitely catch that if you are trying to do the same.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration60 Minutes
Interview date11 Nov 2021
Coding problem2

The online test was in the morning. It consisted of just two coding questions to be solved in an hour. One was easy, one was hard.

1. Unique Paths

Moderate
25m average time
80% success
0/80
Asked in companies
SAP LabsAdobeDirecti

You are present at point ‘A’ which is the top-left cell of an M X N matrix, your destination is point ‘B’, which is the bottom-right cell of the same matrix. Your task is to find the total number of unique paths from point ‘A’ to point ‘B’.In other words, you will be given the dimensions of the matrix as integers ‘M’ and ‘N’, your task is to find the total number of unique paths from the cell MATRIX[0][0] to MATRIX['M' - 1]['N' - 1].

To traverse in the matrix, you can either move Right or Down at each step. For example in a given point MATRIX[i] [j], you can move to either MATRIX[i + 1][j] or MATRIX[i][j + 1].

Problem approach

I gave a brute force solution. My interviewer was very friendly he helped me here and there if they were any errors in my code. Overall I was able to solve both the questions in under 50 minutes. Later we had a casual discussion on projects and work culture at SAP for a few minutes.

Try solving now

2. Mike and Mobile

Moderate
35m average time
45% success
0/80
Asked in companies
SAP LabsAckoUber

Mike is a little boy who loves solving math problems. One day he was playing with his mom’s mobile. The mobile keypad contains 12 buttons { 10 digits(0-9) and 2 characters(‘*’ and ‘#’) }. Mike wants to know how many different numbers he can generate after pressing exactly the 'N' buttons on the keypad. Mike presses the buttons with the following rules:

1. He always presses the button which has a digit written on it, i.e., he never presses the ‘*’ and ‘#’ button.
2. Once he presses a button, the next button he presses should either be the same button or the button which is adjacent to the previous button.
3. In starting he can press any button except ‘*’ and ‘#’.

mobile

Mike is too little to solve this problem. Help Mike to solve this problem. As the answer can be large, so find the answer modulo 10^9 + 7.

Problem approach

N = 1 is trivial case, number of possible numbers would be 10 (0, 1, 2, 3, …., 9) 
For N > 1, we need to start from some button, then move to any of the four direction (up, left, right or down) which takes to a valid button (should not go to *, #). Keep doing this until N length number is obtained (depth first traversal).

Try solving now
02
Round
Medium
Video Call
Duration60 Minutes
Interview date1 Dec 2021
Coding problem3

It was a video call interview taken over MS Teams. Interviewer was fairly friendly. I gave all answers in terms of pseudo code.

1. Puzzle

There is a room with a door (closed) and three light bulbs. Outside the room, there are three switches, connected to the bulbs. You may manipulate the switches as you wish, but once you open the door you can’t change them. Identify each switch with its bulb. All bulbs are in working condition.

Problem approach

Tip 1 : Think quick since puzzles are mostly easy
Tip 2 : Great way to kickstart an interview given that puzzles are easy

2. Regular Expression Matching

Hard
25m average time
80% success
0/120
Asked in companies
FacebookGrowwSAP Labs

Given an input string 'S' and a pattern 'P', implement a regular expression matching with the support of two special characters ‘.’ (dot) and ‘*’(asterisk) where

1. ‘.’ matches to any single character.
2. ‘*’ matches to zero or more of the preceding element.

If the input string 'S' matches the pattern 'P', then return true else, return false.

Note:
1. You have to match the entire string with the pattern given.

2. Both the strings, 'S' and 'P' contain only lower-case alphabets.

3. Only the pattern will contain additional characters ‘*’ and ‘.’ along with alphabets.
Problem approach

Step 1, If p.charAt(j) == s.charAt(i) : dp[i][j] = dp[i-1][j-1];
Step 2, If p.charAt(j) == '.' : dp[i][j] = dp[i-1][j-1];
Step 3, If p.charAt(j) == '*': 
here are two sub conditions:
1 if p.charAt(j-1) != s.charAt(i) : dp[i][j] = dp[i][j-2] //in this case, a* only counts as empty
2 if p.charAt(i-1) == s.charAt(i) or p.charAt(i-1) == '.':
dp[i][j] = dp[i-1][j] //in this case, a* counts as multiple a 
or dp[i][j] = dp[i][j-1] // in this case, a* counts as single a
or dp[i][j] = dp[i][j-2] // in this case, a* counts as empty

Try solving now

3. Two Sum

Easy
10m average time
90% success
0/40
Asked in companies
MeeshoAdobeInfo Edge India (Naukri.com)

You are given an array of integers 'ARR' of length 'N' and an integer Target. Your task is to return all pairs of elements such that they add up to Target.

Note:

We cannot use the element at a given index twice.

Follow Up:

Try to do this problem in O(N) time complexity. 
Problem approach

The basic idea is to maintain a hash table for each element num in nums, using num as key and its index (0-based) as value. For each num, search for target - num in the hash table. If it is found and is not the same element as num, then we are done.

Try solving now
03
Round
Easy
HR Round
Duration60 Minutes
Interview date1 Dec 2021
Coding problem0

It was taken by a senior manager. Mostly there were HR questions and then discussions on my resume. It was an amazing round. The manager was extremely friendly and helpful. What keeps you motivated?. Are you a team player?

04
Round
Easy
HR Round
Duration30 minutes
Interview date1 Dec 2021
Coding problem0

This was purely an HR round and she discussed questions from my resume. I explained all my internships and projects from start to beginning.

What are your hobbies?

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
Developer Associate
5 rounds | 8 problems
Interviewed by SAP Labs
2217 views
0 comments
0 upvotes
company logo
Developer Associate
3 rounds | 7 problems
Interviewed by SAP Labs
1193 views
0 comments
0 upvotes
company logo
Developer Associate
4 rounds | 12 problems
Interviewed by SAP Labs
1066 views
0 comments
0 upvotes
company logo
Developer Associate
1 rounds | 2 problems
Interviewed by SAP Labs
1692 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