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

Associate Software Developer

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

Interview preparation journey

expand-icon
Preparation
Duration: 9 Months
Topics: Data Structures, Algorithms, Operating Systems, OOPS, Dynamic Programming, Machine Learning, Deep Learning
Tip
Tip

Tip 1 : Be consistent. 
Tip 2 : Keep your basics clear
Tip 3 : Never lose your heart

Application process
Where: Campus
Eligibility: Above 8 CGPA, 70 % and above marks in 10th and 12th
Resume Tip
Resume tip

Tip 1 : Make it concise and detailed
Tip 2 : Be confident about everything on ur resume.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration60 Minutes
Interview date28 Aug 2021
Coding problem2

Morning around 10 am. No interviewer was present only a test link was given.

1. Find Duplicates in Array

Easy
15m average time
90% success
0/40
Asked in companies
OYOIBMAcko

You are given an array/list 'ARR' consisting of N integers, which contains elements only in the range 0 to N - 1. Some of the elements may be repeated in 'ARR'. Your task is to find all such duplicate elements.

Note:
1. All the elements are in the range 0 to N - 1.
2. The elements may not be in sorted order.
3. You can return the duplicate elements in any order.
4. If there are no duplicates present then return an empty array.
Try solving now

2. Convert String

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

You are given a string 'STR'. You have to convert the first alphabet of each word in a string to UPPER CASE.

For example:

If the given string 'STR' = ”I am a student of the third year” so you have to transform this string to ”I Am A Student Of The Third Year"

Note:

'STR' will contains only space and alphabets both uppercase and lowercase. The words will be separated by space.
Try solving now
02
Round
Medium
Video Call
Duration45 Minutes
Interview date30 Aug 2021
Coding problem4

1. Technical Question

Describe any one of your project on the whitespace.[ I started making a flowchart of my project which I did recently. Try to explain the project like you are explaining to a child so that even if he doesn’t know anything he can understand it otherwise he will not be interested]

2. System Design Question

He asked me to design a model to get the top 20 relevant pages from 10,000 pages on the web.

3. BFS in Graph

Easy
10m average time
90% success
0/40
Asked in companies
Morgan StanleySamsung R&D InstituteRubrik, Inc.

Given an adjacency list representation of a directed graph with ‘n’ vertices and ‘m’ edges. Your task is to return a list consisting of Breadth-First Traversal (BFS) starting from vertex 0.


In this traversal, one can move from vertex 'u' to vertex 'v' only if there is an edge from 'u' to 'v'. The BFS traversal should include all nodes directly or indirectly connected to vertex 0.


Note:
The traversal should proceed from left to right according to the input adjacency list.


Example:
Adjacency list: { {1,2,3},{4}, {5}, {},{},{}}

The interpretation of this adjacency list is as follows:
Vertex 0 has directed edges towards vertices 1, 2, and 3.
Vertex 1 has a directed edge towards vertex 4.
Vertex 2 has a directed edge towards vertex 5.
Vertices 3, 4, and 5 have no outgoing edges.

We can also see this in the diagram below.

BFS traversal: 0 1 2 3 4 5

example

Problem approach

1)In the various levels of the data, you can mark any node as the starting or initial node to begin traversing. 

2)The BFS will visit the node and mark it as visited and places it in the queue.

3)Now the BFS will visit the nearest and un-visited nodes and marks them. These values are also added to the queue. The queue works on the FIFO model.

4)In a similar manner, the remaining nearest and un-visited nodes on the graph are analyzed marked, and added to the queue. These items are deleted from the queue as received and printed as the result.

Try solving now

4. Find prime numbers

Easy
15m average time
80% success
0/40
Asked in companies
HSBCOptumIBM

You are given a positive integer ‘N’. Your task is to print all prime numbers less than or equal to N.

Note: A prime number is a natural number that is divisible only by 1 and itself. Example - 2, 3, 17, etc.

You can assume that the value of N will always be greater than 1. So, the answer will always exist.

Problem approach

Step 1: Loop through all the elements in the given range.
Step 2: Check for each number if it has any factor between 1 and itself.
Step 3: If yes, then the number is not prime, and it will move to the next number.
Step 4: If no, it is the prime number, and the program will print it and check for the next number.
Step 5: The loop will break when it is reached the upper value.

Try solving now
03
Round
Medium
Video Call
Duration40 Minutes
Interview date31 Aug 2021
Coding problem2

1. Machine Learning Questions

As I had machine learning and deep learning as my area of interest. So he asked me questions related to it like what is deep learning and how it is different from machine learning.

Explain a Deep Learning algorithm

2. OOPS Questions

What is the difference between Abstraction and encapsulation? Explain with an example.

What is an abstract class and what is an Interface? When do we use an abstract class?
What is polymorphism? How many types of polymorphism are there in java?
What is multithreading in java?
What is the difference between an array and a linked list data structure? Discuss the advantages and disadvantages of both.
What is inheritance? Why do we need inheritance?

04
Round
Easy
HR Round
Duration45 Minutes
Interview date30 Aug 2021
Coding problem1

1. Basic HR Questions

Suppose you are doing a project in a team and there is a conflict between you and your teammate. What will you do?
Suppose there are members of your team who are not as good as you. What will you do?
Suppose you are unable to meet your deadline for a project. What will u do?
What is your view regarding a good teacher and a bad teacher?
What was your role in your team project?
Tell me about your strength and weakness?
Where do you see yourself five years later?
What is your area of interest?
Suppose you are given work which you u don’t like, What will you do in this situation?

05
Round
Easy
HR Round
Duration30 Minutes
Interview date30 Aug 2021
Coding problem1

1. Basic HR Questions

What are the struggles of living in a small town?

Tell me about your hobbies?

How are you spending your time in this lockdown period?
How is this lockdown going for you?
What is your view regarding the present COVID situation?
What do you feel should be qualities in a team lead?
Do you have any questions for me?[for this I asked -How is the work culture at SAP?]
How was your previous round of experience? How was the interview?

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
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
company logo
Associate Software Developer
3 rounds | 3 problems
Interviewed by SAP Labs
816 views
0 comments
0 upvotes