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

Associate Software Engineer

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

Interview preparation journey

expand-icon
Preparation
Duration: 2 months
Topics: Data Structures, Algorithms, SQL, Angular, Java
Tip
Tip

Tip 1 : Must do Previously asked Interview as well as Online Test Questions.

Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.

Tip 3 : Do at-least 2 good projects and you must know every bit of them.


 

Application process
Where: Linkedin
Eligibility: 0-3 years of Experience
Resume Tip
Resume tip

Tip 1 : Resume should be informative but not more than two pages
Tip 2 : Provide the links of all your achievements, projects and certificates in your resume

Interview rounds

01
Round
Medium
Online Coding Test
Duration60 minutes
Interview date11 Aug 2021
Coding problem2

This round had 2 questions with Easy to Medium level of difficulty

1. Total area of overlapping rectangles

Easy
10m average time
90% success
0/40
Asked in companies
MicrosoftSAP LabsOracle

You are given two arbitrary rectangles on a 2-D coordinate plane, which may have an intersecting area. You have to find the net area covered by both the rectangles on the cartesian plane.

explain_image

The orange area depicted in the above figure is the net area covered by both rectangles on the cartesian plane.

Note:

1. For a rectangle, its top left and bottom right coordinates are given.

2. Coordinates of the rectangles are integer values.

3. Edges of the given rectangles will always be parallel to the X and Y coordinate axes of the cartesian plane.

4. It is guaranteed that both the rectangles will have at least a unit area.
Problem approach
  • Let’s consider two rectangles rectangle1 and rectangle2. Where left-most top point and right-most bottom point of rectangle1 are ('x1', ‘y1’), ('x2', ‘y2’). And the same for rectangle2 are ('x3', ‘y3’), ('x4', ‘y4’).
  • To know if two rectangles have some common area, we need to consider only four situations: ‘x1’ >= ‘x4’ or ‘y1’ <= ‘y4’ or ‘x2’ <= ‘x3' or ‘y2’ >= ‘y3’. In such cases, rectangle ('x1', ‘y1’, ‘x2’, ‘y2’) will not overlap with the rectangle ('x3', ‘y3’, ‘x4’, ‘y4’).
  • To calculate the common area, we only need to know the coordinates of the bottom left corner and top right corner of the overlapped area.
  • In any case we only need to know max('x1', ‘x3’), min('x2', ‘x4’), max('y1', ‘y3’) and min('y2', ‘y4’)  to calculate the overlapped area.
  • Net area = Area of rectangle 1 + Area of rectangle 2 - Intersection or Overlapped area.

 

Try solving now

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

Easy
10m average time
90% success
0/40
Asked in companies
BarclaysDunzoSAP Labs

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 idea is to start from the leftmost element in the array and keep track of any negative elements. While traversing the array if we find a negative element, we swap the current element with the leftmost positive element. Otherwise, ignore the current element.

Try solving now
02
Round
Medium
Face to Face
Duration70 minutes
Interview date17 Aug 2021
Coding problem2

Standard DS/Algo round with 2 questions

1. Find middle node of a Linked List

Easy
20m average time
80% success
0/40
Asked in companies
SamsungGoldman SachsOracle

Given a singly linked list of 'N' nodes. The objective is to determine the middle node of a singly linked list. However, if the list has an even number of nodes, we return the second middle node.

Note:
1. If the list is empty, the function immediately returns None because there is no middle node to find.
2. If the list has only one node, then the only node in the list is trivially the middle node, and the function returns that node.
Problem approach

Take two pointers - first node increase by one and the other node increase by two, so by the time the second node reaches the last node we will get the middle node as node 2.
 

Try solving now

2. All Prime Numbers less than or equal to N

Moderate
10m average time
90% success
0/80
Asked in companies
OptumIBMAmazon

You are given a positive integer 'N'. Your task is to return all the prime numbers less than or equal to the 'N'.

Note:

1) A prime number is a number that has only two factors: 1 and the number itself.

2) 1 is not a prime number.
Problem approach

The idea here is to check every number less than or equal to N is prime or not. Those who are prime just add them in an array and return the array at the end of the function.

Try solving now
03
Round
Easy
HR Round
Duration30 minutes
Interview date25 Apr 2022
Coding problem1

This was a Technical Cum HR round where I was first asked some basic Java-related concepts and then we discussed my expectations from the company, learnings and growth in the forthcoming years. I would suggest be honest and try to communicate your thoughts properly in these types of rounds to maximise your chances of getting selected.

1. Basic HR Questions

1) Why should we hire you?
2) What are your expectations from the company?
3) How was your overall interview experience?
4) What are your strengths and weakness according to you?
5) Where do you see yourself in the next 5 years?

Problem approach

Tip 1 : Be yourself
Tip 2 : Don't panic
Tip 3 : Have some examples of leadership skills that you have implemented

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
Developer Associate
5 rounds | 8 problems
Interviewed by SAP Labs
2218 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
Companies with similar interview experiences
company logo
Associate Software Engineer
3 rounds | 10 problems
Interviewed by Amdocs
2410 views
0 comments
0 upvotes
company logo
Associate Software Engineer
3 rounds | 4 problems
Interviewed by Amdocs
1985 views
0 comments
0 upvotes
company logo
Associate Software Engineer
3 rounds | 5 problems
Interviewed by Optum
2175 views
0 comments
0 upvotes