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

Developer Associate

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

Interview preparation journey

expand-icon
Preparation
Duration: 6 months
Topics: Data Structures, Algorithms, Networking, DBMS, Operation System, OOP, Java and Spring boot, Node.js.
Tip
Tip

Tip 1 : Learn all the common data structures and algorithms in depth and practice them.
Tip 2 : Try to solve as many coding problem as you can from any coding platform.
Tip 3 : Create at least two real world project to apply your knowledge and skill, and make them live to share with community.

Application process
Where: Linkedin
Eligibility: 1-3 years work experience.
Resume Tip
Resume tip

Tip 1 : Make the CV simple, clean readable and in well formatted. Do not use too many colours or too many fonts.
Tip 2 : Highlight the most important projects or achievements. Do not elaborate too much, make it crisp.
Tip 3 : CV of the candidate with experience less than 3 should not be more than one page.
Tip 4: Don not put any false or unnecessary information.

Interview rounds

01
Round
Easy
Online Coding Interview
Duration60 minutes
Interview date15 Jul 2021
Coding problem2

The HR person sent me a Hackerrank exam link. I could appear the test as per your suitable time within two days. I attempted the test in morning from my home. The exam was under on camera supervision. So room should be clean and clear. They will observe you. There was two coding questions and 10 MCQ questions related to computer science topics like networking, OS, DBMS, OOP etc. There was no interview.

1. Find a value in BST

Easy
15m average time
85% success
0/40
Asked in companies
AdobeSAP LabsAtom Technologies

You have been given a Binary Search Tree and a key value ‘X’, find if a node with value ‘X’ is present in the BST or not.

Note:
You may assume that duplicates do not exist in the tree.
For example :
For the given tree shown below:

Example

For the binary tree shown in the figure, if ‘X’ = 6, the output will be 1 as node value 6 is present in the BST.
Problem approach

I used recursive way for the solution. All the test cases were passed.

Try solving now

2. Balanced parentheses

Moderate
10m average time
90% success
0/80
Asked in companies
SalesforceAmazonMicrosoft

Given an integer ‘N’ representing the number of pairs of parentheses, Find all the possible combinations of balanced parentheses with the given number of pairs of parentheses.

Note :

Conditions for valid parentheses:
1. All open brackets must be closed by the closing brackets.

2. Open brackets must be closed in the correct order.

For Example :

()()()() is a valid parentheses.
)()()( is not a valid parentheses.
Problem approach

I took a stack to solve the problem.

Try solving now
02
Round
Easy
Video Call
Duration60 minutes
Interview date20 Jul 2021
Coding problem2

This was the first round of interview through Microsoft teams. I appeared this from my home only in office hour.

1. Search In Rotated Sorted Array

Moderate
30m average time
65% success
0/80
Asked in companies
InformaticaDelhiveryGoldman Sachs

Aahad and Harshit always have fun by solving problems. Harshit took a sorted array consisting of distinct integers and rotated it clockwise by an unknown amount. For example, he took a sorted array = [1, 2, 3, 4, 5] and if he rotates it by 2, then the array becomes: [4, 5, 1, 2, 3].

After rotating a sorted array, Aahad needs to answer Q queries asked by Harshit, each of them is described by one integer Q[i]. which Harshit wanted him to search in the array. For each query, if he found it, he had to shout the index of the number, otherwise, he had to shout -1.

For each query, you have to complete the given method where 'key' denotes Q[i]. If the key exists in the array, return the index of the 'key', otherwise, return -1.

Note:

Can you solve each query in O(logN) ?
Problem approach

Step 1 : First I solved the problem in iterative way. They told me to do it in Java as the role was for Java developer. 
Step 2 : Interviewer asked me to calculate the time and space complexity and I did.

Try solving now

2. Reverse Linked List

Moderate
15m average time
85% success
0/80
Asked in companies
WalmartHCL TechnologiesInfo Edge India (Naukri.com)

Given a singly linked list of integers. Your task is to return the head of the reversed linked list.

For example:
The given linked list is 1 -> 2 -> 3 -> 4-> NULL. Then the reverse linked list is 4 -> 3 -> 2 -> 1 -> NULL and the head of the reversed linked list will be 4.
Follow Up :
Can you solve this problem in O(N) time and O(1) space complexity?
Problem approach

Step 1 : Interviewer asked me to reverse a linked list.
Step 2 : I solved the problem in iterative way.
Step 3 : Interviewer asked me to calculate time and space complexity and I did so.
Step 4 : Interviewer asked me to solve the problem in recursive way too.
Step 5 : I solved the problem in recursive was and he was happy.

Try solving now
03
Round
Easy
Video Call
Duration60 minutes
Interview date22 Jul 2021
Coding problem2

This round is also same as previous round, only little bit tougher. I appeared in office hour from my home through teams.

1. Level order traversal

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

You have been given a Binary Tree of integers. You are supposed to return the level order traversal of the given tree.

For example:
For the given binary tree

Example

The level order traversal will be {1,2,3,4,5,6,7}.
Problem approach

Step 1 : I solved the problem taking one queue. 
Step 2 : Interviewer asked me to calculate time and space complexity, I did so.
Step 3 : Interviewer asked me to write code for pre-order, post-order and in-order traversal also.
Step 4 : I solved them in recursive way.

Try solving now

2. System Design Question

It was a low level system design question. They told me to design an image gallery app, where users can upload and download images. Users can put like and dislike also to each image. They can share the image url too.

Problem approach

Tip 1 : Create some good project which involves some complex database queries, file read write capabilities.
Tip 2 : Learn basics of web, like how HTTP and TCP works, REST API, Response and status codes etc.
Tip 3 : Learn how to store data in DB, what type of DB you need, i.e. Relational DB or NoSQL etc

04
Round
Easy
Telephonic
Duration60 minutes
Interview date27 Jul 2021
Coding problem1

This was taken by hiring manager. He gave me a string search problem. Then asked some basic questions related to my branch, education, previous project, my achievements, hobbies, strengths, weakness etc.

1. Compress the String

Moderate
32m average time
60% success
0/80
Asked in companies
MicrosoftArcesiumAmazon

Write a program to do basic string compression. For a character which is consecutively repeated more than once, replace consecutive duplicate occurrences with the count of repetitions.

Example:
If a string has 'x' repeated 5 times, replace this "xxxxx" with "x5".
The string is compressed only when the repeated character count is more than 1.
Note:
Consecutive count of every character in the input string is less than or equal to 9. You are not required to print anything. It has already been taken care of. Just implement the given function and return the compressed string.
Problem approach

Step 1 : Interviewer asked me to solve the string search problem and asked to return first occurrence.
Step 2 : I solved it in normal naive approach.
Step 2 : Interviewer asked me to solve for all other occurrences to return them in an array, I did so.
Step 3 : Interview asked me if there are any other method I know to solve the problem.
Step 4 : I told KMP and Rabin-Karp method.
Step 5 : He asked to tell the algo in short. I did so.

Try solving now
05
Round
Easy
HR Round
Duration30 minutes
Interview date28 Jul 2021
Coding problem1

HR round was also through MS teams only as it was pandemic period. I appeared for the interview in morning.

1. Basic HR Questions

Tell me about yourself.

What challenges did you face while making your project?

How to handle customers?

What are you expecting from us?

Problem approach

Tip 1 : Think and gather info what you did in your previous company, what you achieve, what difficulties you faced etc.
Tip 2 : Ask about your roles and responsibilities and the expectations from the company also.
Tip 3 : Ask anything related to your work and the company when they will tell you to ask.

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
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
4 rounds | 4 problems
Interviewed by SAP Labs
997 views
1 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