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

SDE - 1

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

Interview preparation journey

expand-icon
Preparation
Duration: 6 months
Topics: Data Structures, OOPS, Algorithhms, Databases(Basics), OS (Basics), Networking (Basics), Java, C++
Tip
Tip

Tip 1 : Focus on understanding the approach to solve a problem and if stuck why you got stuck instead of going through the solutionand accepting what it is written there. I have seen many people doing this which i don't agree with.
Tip 2 : Same for labnguages try to understand the basics/fundamentals on which the language/concept is built
Tip 3 : Even if you are doing 100 questions Only but as long as concepts are clear you will do very well.
Tip 4 : GFG practice sections for OOPS/DBMS/OS/NETWORKING are worth doing atleast once

Application process
Where: Campus
Eligibility: CGPA 7.0+
Resume Tip
Resume tip

Tip 1 : Be short and precise as much as you can about your projects, internships and skills.
Tip 2 : Mention the important information on first page as many a times they even don't look at page 2 for campus placements.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration50mins
Interview date31 Oct 2020
Coding problem2

2 medium level coding questions

1. Container With Most Water

Moderate
15m average time
90% success
0/80
Asked in companies
BNY MellonAmazonSAP Labs

Given a sequence of ‘N’ space-separated non-negative integers A[1],A[2],A[3],......A[i]…...A[n]. Where each number of the sequence represents the height of the line drawn at point 'i'. Hence on the cartesian plane, each line is drawn from coordinate ('i',0) to coordinate ('i', 'A[i]'), here ‘i’ ranges from 1 to ‘N’. Find two lines, which, together with the x-axis forms a container, such that the container contains the most area of water.

Note :
1. You can not slant the container i.e. the height of the water is equal to the minimum height of the two lines which define the container.

2. Do not print anything, you just need to return the area of the container with maximum water.
Example

water-diagram

For the above Diagram, the first red marked line is formed between coordinates (2,0) and (2,10), and the second red-marked line is formed between coordinates (5,0) and (5,9). The area of water contained between these two lines is (height* width) = (5-2)* 9 = 27, which is the maximum area contained between any two lines present on the plane. So in this case, we will return 3* 9=27.
Try solving now

2. Cycle Detection in a Singly Linked List

Moderate
15m average time
80% success
0/80
Asked in companies
Morgan StanleyDunzoOYO

You are given a Singly Linked List of integers. Return true if it has a cycle, else return false.


A cycle occurs when a node's next points back to a previous node in the list.


Example:
In the given linked list, there is a cycle, hence we return true.

Sample Example 1

Try solving now
02
Round
Easy
Face to Face
Duration30 mins
Interview date2 Dec 2020
Coding problem2

First round started at around 6 pm and was written round where interviewer asked to pick any topic of my choice and i picked tree for it. Then he asked me few questions around the basic tree algorithms and traversal which i explained convicingly. They key was to explain how you are doing it rather than writing the solutions directly on paper. 
You will always find intrviewer from SAP as free friendly and helpful and it was same here.

1. Left View Of Binary Tree

Moderate
30m average time
60% success
0/80
Asked in companies
WalmartSalesforceDelhivery

You have been given a Binary Tree of 'n' nodes, where the nodes have integer values



Example :
If the input tree is as depicted in the picture: 

alt text

The Left View of the tree will be:  2 35 2 
Try solving now

2. Data structure based questions

What is a binary tree, tree vs binary tree

Problem approach

These are standard questions easily available on GFG. Key is to explain it properly and it should not look like you have just memorised it all.

03
Round
Easy
Face to Face
Duration3o mins
Interview date1 Dec 2020
Coding problem3

I was asked puzzles like if it doubles every two days then how muc time will it take 2 ants to have a population of 1024 followed by basic questions around Relational Databases and OOPs concepts.
Interviewers were very friendly and as all rounds were continuous so were in same night.

1. puzzle

how much time will it take 2 ants to have a population of 1024

Problem approach

Tip 1: don't jump to answer directly. Explain the approach.
Tip 2: don't give intial wrong answer in rush of blood. Think and then answer

2. Basic OOPs concepts in C++ and Java

Encapsulation, Abstraction why they are needed

Problem approach

A good understandinf of these concepts helps here.

3. DBMS questions

What is relational databases? It's advantages and disadvantages

Problem approach

Tip 1: Have a good understanding of the relational databases basics
Tip 2: Be open to admit the topics you don't know in detail

04
Round
Medium
HR Round
Duration60 mins
Interview date1 Dec 2020
Coding problem3

Round was focused on approach to solve a problem which is non technical and understanding if you will stay at SAP for some time or not.
HR was very helpful .

1. HR question

What is cloud? How will you explain it to a kid of 5 years.

Problem approach

Tip 1: Be as creative as you can.
Tip 2: Try to bring up your thought process in conversations

2. HR question

How will you help solve the problem of Air/Food/Water for people through engineering?

Problem approach

Tip 1:be focused on the engineering aspects.
Tip 2: Creativity is again the key here
Tip 3:

3. HR question

Goal for next 5 years, Technology preferences etc.

Problem approach

Tip 1: Make sure your answers seem aligned to the company work area.
Tip 2: They are looking if candidate will stay or leave within a year so answer bit diplomatically.

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
SDE - 1
3 rounds | 3 problems
Interviewed by SAP Labs
2656 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 5 problems
Interviewed by SAP Labs
0 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 5 problems
Interviewed by SAP Labs
866 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 2 problems
Interviewed by SAP Labs
1752 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
115097 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
58237 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
35147 views
7 comments
0 upvotes