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

Scholar

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

Interview preparation journey

expand-icon
Journey
Getting a placement in SAP Labs is a dream come true for me. I dedicate this minor success/achievement to my teacher, parents, and friends. After being shortlisted for interviews, I went through some previous year interview experiences where the main focus of interviewers was on the core knowledge of the subjects and the experience of project development. I am well-versed in core subjects like DBMS, DS, OOPS, JAVA, CPP, and Web Technology. Also, I had given some good problem-solving hours that helped me during my interview rounds.
Application story
My college helped me in the application/registration process. After 5-10 days of registration, I got a shortlisting email from the company for the interviews.
Why selected/rejected for the role?
I got selected for this role for several reasons: 1) Good problem-solving skills. 2) Good core knowledge. 3) Experience in dynamic web development. 4) Patent and certifications. 5) Good interpersonal skills. 6) Positive attitude.
Preparation
Duration: 18 months
Topics: Data Structures, OOPS, DBMS, CN, OS, SQL
Tip
Tip

Tip 1 : Focus on Practical knowledge rather then theoretical.
Tip 2 : Learn Core Concepts like DSA, OOPS, DBMS, OS.

Application process
Where: Campus
Eligibility: 7 CGPA
Resume Tip
Resume tip

Tip 1: Don't fake your skills; only mention the skills you have.
Tip 2: Mention the two projects which are the best among all.

Interview rounds

01
Round
Easy
Online Coding Test
Duration45 minutes
Interview date23 Jul 2023
Coding problem2

There were two DSA questions of Array and String.

1. Move All Negative Numbers To Beginning And Positive To End

Easy
10m average time
90% success
0/40
Asked in companies
SAP LabsBarclaysPayU

You are given an array 'ARR' consisting of 'N' integers. You need to rearrange the array elements such that all negative numbers appear before all positive numbers.

Note:
The order of elements in the resulting array is not important.
Example:
Let the array be [1, 2, -3, 4, -4, -5]. On rearranging the array such that all negative numbers appear before all positive numbers we get the resulting array [-3, -5, -4, 2, 4, 1].
Problem approach

The Dutch National Flag algorithm, also known as the 3-way partitioning algorithm, can be used to solve the problem of moving all negative numbers to the beginning of an array or list and all positive numbers to the end. This algorithm was originally designed to sort an array of 0s, 1s, and 2s, but it can be adapted for this purpose.

Here are the steps to solve the problem using the Dutch National Flag algorithm:

1) Initialize three pointers: low, high, and current.

- **low** will initially point to the start of the array.
- **high** will initially point to the end of the array.
- **current** will start at the beginning of the array and traverse it.

2) Traverse the array with the **current** pointer from the beginning:

- If the element at the **current** pointer is negative (less than 0), swap it with the element at the **low** pointer and increment both **low** and **current**.
- If the element at the **current** pointer is positive (greater than or equal to 0), leave it in place and increment **current**.
- If the element at the **current** pointer is zero, you can choose to leave it in place or move it to the appropriate side based on your specific requirements. In this case, if you want negative numbers at the beginning, you can leave zeros in place.

3) Continue this process until **current** is greater than or equal to **high**.

Try solving now

2. Next Permutation

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

You have been given a permutation of ‘N’ integers. A sequence of ‘N’ integers is called a permutation if it contains all integers from 1 to ‘N’ exactly once. Your task is to rearrange the numbers and generate the lexicographically next greater permutation.

To determine which of the two permutations is lexicographically smaller, we compare their first elements of both permutations. If they are equal — compare the second, and so on. If we have two permutations X and Y, then X is lexicographically smaller if X[i] < Y[i], where ‘i’ is the first index in which the permutations X and Y differ.

For example, [2, 1, 3, 4] is lexicographically smaller than [2, 1, 4, 3].

Try solving now
02
Round
Medium
Face to Face
Duration90 minutes
Interview date26 Jul 2023
Coding problem4

1. DBMS

What are ACID properties? (Learn)

Problem approach

-Here's a brief explanation of each of the ACID properties:

-Atomicity: Transactions are treated as a single, indivisible unit. They are either fully completed or have no effect at all. If any part of a transaction fails, the entire transaction is rolled back.

-Consistency: Transactions bring the database from one consistent state to another. They must adhere to all integrity constraints and rules, ensuring the database remains valid.

-Isolation: Transactions are executed as if they are isolated from other transactions. Their operations are hidden from other transactions until they are completed to prevent interference.

-Durability: Once a transaction is committed, its changes are permanent and will survive system failures. This is typically achieved by writing changes to non-volatile storage.

These properties ensure data reliability and consistency in database systems, even in the face of failures and concurrent access by multiple users or applications.

2. DBMS

Define Normalization? (Learn)

Problem approach

Normalization is the process of organizing and structuring a relational database to reduce data redundancy and improve data integrity. It involves breaking down a large table into smaller, related tables while maintaining the relationships between them. The main goal of normalization is to eliminate data anomalies and inconsistencies that can occur when data is stored redundantly or in a non-structured way.

3. DBMS

Join query in SQL? (Learn)

Problem approach

Tip 1 : Do practice SQL queries

4. Theory Question

What is External and Internal fragmentation? (Learn)

Problem approach

Tip 1 : Do learn topics of DBMS

03
Round
Medium
Face to Face
Duration90 minutes
Interview date26 Jul 2023
Coding problem5

1. Puzzle

Minimum Cut Puzzle

You have someone working for you for five days and a gold bar to pay him. You must give them a piece of gold at the end of every day. What is the fewest number of cuts to the bar of gold that will allow you to pay him 1/5th each day?

2. Theory Questions

Difference between process and thread? (Learn)

Problem approach

Processes are independent program units with their own memory space, while threads are smaller units within a process that share the same memory and resources. The choice between processes and threads depends on the specific requirements of your application, such as parallelism, responsiveness, and resource efficiency.

3. Theory Questions

What is the difference between RAM and ROM? (Learn)

4.

IP address vs MAC address? (Learn)

Problem approach

Tip 1 : Do learn Computer Networks topics.

5. Theory Questions

Define the OSI model and all protocols at each layer. (Learn)

Problem approach

Tip 1 : Do learn Computer Networks topics

04
Round
Medium
HR Round
Duration30 minutes
Interview date27 Jul 2023
Coding problem1

Personal Interview

1. Basic HR Questions

What do you know about the company?

Tell me about your family?

What is ERP?

How you handle stress?

Where you applied your leadership skills?

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
Software Developer
4 rounds | 6 problems
Interviewed by SAP Labs
1053 views
0 comments
0 upvotes
company logo
Software Developer
4 rounds | 11 problems
Interviewed by SAP Labs
830 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
Associate Software Developer
3 rounds | 3 problems
Interviewed by SAP Labs
788 views
0 comments
0 upvotes