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

Associate Developer

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

Interview preparation journey

expand-icon
Preparation
Duration: 5 months
Topics: Data Structures, DBMS, OOPS, System Design, Algorithms, Dynamic Programming.
Tip
Tip

Tip 1 : Be Consistent
Tip 2 : Solve at least 30 questions from all topics
 

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

Tip 1 : Don't fake anything
Tip 2 : Be thorough with whatever you have written

Interview rounds

01
Round
Medium
Online Coding Interview
Duration60 minutes
Interview date2 Aug 2020
Coding problem2

1. Remove Consecutive Duplicates

Easy
0/40
Asked in companies
MeeshoSamsungGoldman Sachs

For a given string(str), remove all the consecutive duplicate characters.

Example:
Input String: "aaaa"
Expected Output: "a"

Input String: "aabbbcc"
Expected Output: "abc"
Problem approach

Strings

Try solving now

2. Wildcard Pattern Matching

Hard
50m average time
30% success
0/120
Asked in companies
FreshworksWalmartSamsung R&D Institute

Given a text and a wildcard pattern of size N and M respectively, implement a wildcard pattern matching algorithm that finds if the wildcard pattern is matched with the text. The matching should cover the entire text not partial text.

The wildcard pattern can include the characters ‘?’ and ‘*’

 ‘?’ – matches any single character 
 ‘*’ – Matches any sequence of characters(sequence can be of length 0 or more)
Problem approach

Strings

Try solving now
02
Round
Easy
Video Call
Duration60 minutes
Interview date2 Aug 2021
Coding problem2

1. Move Zeroes To End

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

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.

Problem approach

Arrays

Try solving now

2. System Design Questions

Design Product Notification for out of stocks products in an eCommerce application.
3 SQL queries( 1 on joins, 1 on nested query, and 1 on group-by).
He wrote around 10 SQL commands and asked to define them.
Difference between Delete, Drop, and Truncate.
Pointers and References.
Struct and Union with respective use cases.
Explain malloc, calloc, etc.

03
Round
Easy
Video Call
Duration60 minutes
Interview date2 Aug 2021
Coding problem2

1. Largest subarray with equal number of 0s and 1s

Moderate
10m average time
85% success
0/80
Asked in companies
PhonePeSAP LabsAmazon

You are given an array consisting of 0s and 1s. You need to find the length of the largest subarray with an equal number of 0s and 1s.

For example:

If the given array is: [0, 0, 1, 0, 1] The largest subarray would be: [0, 1, 0, 1] (last 4 elements) having length 4.
Problem approach

Arrays

Try solving now

2. System Design Questions

Given 2 strings check if they are rotation of each other or not.
Design a Car Rental System. ( I started with a basic design then he asked me to add features like transfer of ownership, etc.)
Normal Forms, ACID properties, and how to make transactions serializable.
Discussion on memory allocation and malloc, calloc, new, etc.
Design TinyURL( only approach was asked.)

04
Round
Easy
HR Round
Duration30 minutes
Interview date2 Aug 2021
Coding problem1

1. Basic HR Questions

Why SAP? 

Why should we hire you? 

What are your expectations from SAP? 

Interests and job location. 

What are your long term goals? 

What co-curricular activities do you want to do in SAP?

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

What is recursion?

Choose another skill to practice
Similar interview experiences
company logo
Associate Developer
3 rounds | 2 problems
Interviewed by SAP Labs
2052 views
0 comments
0 upvotes
company logo
Associate Developer
3 rounds | 6 problems
Interviewed by SAP Labs
1408 views
0 comments
0 upvotes
company logo
Associate Developer
4 rounds | 7 problems
Interviewed by SAP Labs
1114 views
0 comments
0 upvotes
company logo
Associate Developer
5 rounds | 11 problems
Interviewed by SAP Labs
2446 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Associate Developer
3 rounds | 5 problems
Interviewed by Oracle
1422 views
0 comments
0 upvotes