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

SDE - Intern

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

Interview preparation journey

expand-icon
Preparation
Duration: 5 Months
Topics: Data Structures, Pointers, OS, Data Base, Networks, System Design
Tip
Tip

Tip 1 : Only write what your confident in cv
Tip 2 : Practice ds and algo problems with consistency
Tip 3 : Prepare for company specific questions

Application process
Where: Campus
Eligibility: 8 cgpa
Resume Tip
Resume tip

Tip 1 : Skills relevant to Job Description 
Tip 2 : Be confident about things mentioned in cv

Interview rounds

01
Round
Easy
Online Coding Interview
Duration60 Minutes
Interview date1 Oct 2020
Coding problem2

The first round was conducted on HackerRank platform and comprised of 10 MCQs and 2 coding questions.
Both the coding questions expected optimised solution (brute force wouldn’t work).

1. Subarray Sums I

Moderate
15m average time
85% success
0/80
Asked in companies
SAP LabsCognizantCurefit

You are given an integer array 'arr' of size 'N' and an integer 'K'.

Your task is to find the total number of subarrays of the given array whose sum of elements is equal to k.

A subarray is defined as a contiguous block of elements in the array.

Example:
Input: ‘N’ = 4, ‘arr’ = [3, 1, 2, 4], 'K' = 6

Output: 2

Explanation: The subarrays that sum up to '6' are: [3, 1, 2], and [2, 4].
Try solving now

2. Minimum Number of Platforms

Moderate
30m average time
70% success
0/80
Asked in companies
AtlassianSwiggyMicrosoft

You have been given two arrays, 'AT' and 'DT', representing the arrival and departure times of all trains that reach a railway station.

Your task is to find the minimum number of platforms required for the railway station so that no train needs to wait.

Note :
1. Every train will depart on the same day and the departure time will always be greater than the arrival time. For example, A train with arrival time 2240 and departure time 1930 is not possible.

2. Time will be given in 24H format and colons will be omitted for convenience. For example, 9:05AM will be given as "905", or 9:10PM will be given as "2110".

3. Also, there will be no leading zeroes in the given times. For example, 12:10AM will be given as “10” and not as “0010”.
Try solving now
02
Round
Medium
Video Call
Duration60 Minutes
Interview date5 Jan 2021
Coding problem3

The interview began with my introduction. The interviewer was very friendly and asked me a few questions about myself, my hobbies, etc.

1. OOPS Questions

Oops, concepts- Polymorphism, overloading, and overriding difference, Examples of each and everything which he asked in real life.

2. Merge Sort

Easy
15m average time
85% success
0/40
Asked in companies
HCL TechnologiesPayPalPaytm (One97 Communications Limited)

Given a sequence of numbers ‘ARR’. Your task is to return a sorted sequence of ‘ARR’ in non-descending order with help of the merge sort algorithm.

Example :

Merge Sort Algorithm -

Merge sort is a Divide and Conquer based Algorithm. It divides the input array into two-parts, until the size of the input array is not ‘1’. In the return part, it will merge two sorted arrays a return a whole merged sorted array.

subsequence

The above illustrates shows how merge sort works.
Note :
It is compulsory to use the ‘Merge Sort’ algorithm.
Try solving now

3. Remove Duplicates

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

Ninja is playing with numbers but hates when he gets duplicate numbers. Ninja is provided an array, and he wants to remove all duplicate elements and return the array, but he has to maintain the order in which the elements were supplied to him.

Try solving now
03
Round
Easy
Video Call
Duration60 Minutes
Interview date5 Oct 2020
Coding problem3

This was conducted on the Codepair platform on HackerRank and the interviewer was in face-time with me. There were 3 questions to be coded.

1. Move Zeroes to End

Easy
0/40
Asked in companies
SAP LabsBirdEyeCredit Suisse

Given an unsorted array of integers, you have to move the array elements in a way such that all the zeroes are transferred to the end, and all the non-zero elements are moved to the front. The non-zero elements must be ordered in their order of appearance.

For example, if the input array is: [0, 1, -2, 3, 4, 0, 5, -27, 9, 0], then the output array must be: [1, -2, 3, 4, 5, -27, 9, 0, 0, 0].

Expected Complexity: Try doing it in O(n) time complexity and O(1) space complexity. Here, ‘n’ is the size of the array.

Try solving now

2. Shape and Overriding

Easy
0/40
Asked in companies
SAP LabsHexaware TechnologiesMetricStream

Create a Class Shape having a field shapeType and a function printMyType.

Create another class, Square and Rectangle, which inherits the Shape class and has additional fields length and breadth. Both Square and Rectangle classes will have two functions calculateArea, which will return the object's area, and printMyType, which will print the type of the object.

Inside the main, first create the object of class Square and have a length equal to 5 and call the printMyType then calculateArea method after creating the object of class Rectangle having the length equal to 5 and breadth equal to 4 and again call the printMyType and calculateArea method.

Try solving now

3. DFS Traversal

Moderate
35m average time
65% success
0/80
Asked in companies
Paytm (One97 Communications Limited)CognizantReliance Jio Infocomm Ltd

Given an undirected and disconnected graph G(V, E), containing 'V' vertices and 'E' edges, the information about edges is given using 'GRAPH' matrix, where i-th edge is between GRAPH[i][0] and GRAPH[i][1]. print its DFS traversal.

V is the number of vertices present in graph G and vertices are numbered from 0 to V-1. 

E is the number of edges present in graph G.
Note :
The Graph may not be connected i.e there may exist multiple components in a graph.
Try solving now
04
Round
Easy
HR Round
Duration20 Minutes
Interview date5 Jan 2021
Coding problem0

This was the easiest of all rounds. The HR started by introducing herself and then asked for my introduction. She then went on details like my hobbies, how would I handle a critical sample situation, my strengths, my weaknesses, etc.

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 create a function in JavaScript?

Choose another skill to practice
Start a Discussion
Similar interview experiences
company logo
SDE - Intern
4 rounds | 11 problems
Interviewed by SAP Labs
1175 views
0 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by SAP Labs
1665 views
0 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 4 problems
Interviewed by SAP Labs
565 views
0 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 8 problems
Interviewed by SAP Labs
1138 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
13595 views
4 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
12782 views
1 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
9049 views
2 comments
0 upvotes