29 questions · from 4 interviews

SAP interview questions

Every question candidates reported from their SAP interviews, most frequently asked first. Each links to the write-up it came from, so you can see the round and how it went.

SAP coding and DSA questions

  1. 01

    Basic Text Chunking Strategy

    Write pseudo‑code for a basic text chunking strategy. Then modify the code to implement a sliding‑window chunking strategy.

    From SAP STAR Program | Interview Experience | Technical & HR | On-Campus | Result: Rejected

  2. 02

    Find nodes with values greater than a given leaf value in a BST

    Tree‑based problem: given a binary search tree and a leaf node value, find all nodes in the tree whose values are greater than the value of that leaf node.

    Medium · From [Interview Experience] SAP Concur – Software Engineer – USA (L1B Visa) | Got Offer ✅

  3. 03

    Count all leaf nodes in a binary tree

    Given a binary tree, count the number of leaf nodes (nodes with no children) present in the tree.

    Medium · From [Interview Experience] SAP Concur – Software Engineer – USA (L1B Visa) | Got Offer ✅

  4. 04

    Balanced parentheses validation

    Given a string consisting of parentheses characters '(', ')', determine if the parentheses are balanced and properly nested.

    Easy · From [Interview Experience] SAP Concur – Software Engineer – USA (L1B Visa) | Got Offer ✅

  5. 05

    Count occurrences of all substrings within a string

    Given a string, count how many times each possible substring appears in the string.

    Medium · From [Interview Experience] SAP Concur – Software Engineer – USA (L1B Visa) | Got Offer ✅

  6. 06

    Find unique rows in a 2D array or matrix

    Given a 2‑dimensional array (matrix), return the rows that are unique (appear only once) in the matrix.

    Medium · From [Interview Experience] SAP Concur – Software Engineer – USA (L1B Visa) | Got Offer ✅

  7. 07

    Second Highest Salary Query

    Write an SQL query to find the second highest salary of an employee (often solved using a sub‑query or window function).

    Easy · From SAP@Scholar | Software engineer | oncampus (selected)

  8. 08

    Find Duplicate Element in Array

    Given an array, find the duplicate element using an optimized approach (e.g., O(1) extra space and linear time).

    Medium · From SAP@Scholar | Software engineer | oncampus (selected)

  9. 09

    Reverse a Linked List

    Implement a function to reverse a singly linked list, including writing the Linked List class and the reverse method.

    Medium · From SAP@Scholar | Software engineer | oncampus (selected)

  10. 10

    String Formation from Word List with Frequency Constraint

    Given a list of words and a string as input, identify if that string can be made from the given list of words. For example: listofwords = [“what”, “is”, “San Francisco”, “SAP”, “Job”] , string – where is SAP located . For this case, you should return False .…

    From SAP Developer, Palo Alto, Jan 2020

  11. 11

    Shortest Distance to Character

    Find the minimum distance of every letter in the given word from a given alphabet. Example: word = “sustainable” and alphabet = “a” . You should return [3,2,1,0,1,1,0,1,2,3] . Explanation: The distance of 's' at index 0 to the nearest 'a' (at index 4) is 3,…

    From SAP Developer, Palo Alto, Jan 2020

  12. 12

    Two Sum

    Given an array of integers, find two numbers that add up to a specific target.

    Easy · From SAP Developer, Palo Alto, Jan 2020

  13. 13

    Design LRU Cache

    Design a Least Recently Used (LRU) cache. Implement the get and put operations with optimal time complexity.

    Medium · From SAP Developer, Palo Alto, Jan 2020

  14. 14

    Min Stack

    Design a stack which supports push , pop , top , and retrieving the minimum element in constant time (O(1)).

    Medium · From SAP Developer, Palo Alto, Jan 2020

SAP system design questions

  1. 01

    Design an API system capable of handling N concurrent requests

    Design an API service that can handle a large number (N) of concurrent requests, covering aspects such as rate limiting, load balancing, horizontal scaling, and queue‑based request handling, as well as failure scenarios and bottlenecks.

    From [Interview Experience] SAP Concur – Software Engineer – USA (L1B Visa) | Got Offer ✅

SAP behavioural and HR questions

  1. 01

    Self-Introduction

    Tell me about yourself.

    From SAP Developer, Palo Alto, Jan 2020

  2. 02

    Last Project Discussion

    Explain your last project, including any problems faced.

    From SAP Developer, Palo Alto, Jan 2020

  3. 03

    Resume Project Discussion

    Discuss projects listed on your resume.

    From SAP Developer, Palo Alto, Jan 2020

  4. 04

    Challenges Faced

    Discuss challenges faced in your projects or roles.

    From SAP Developer, Palo Alto, Jan 2020

  5. 05

    Future Career Goals

    Discuss your future goals.

    From SAP Developer, Palo Alto, Jan 2020

  6. 06

    Conflict Resolution

    Describe how you resolve conflicts with your teammates, providing specific situations if you have faced any.

    From SAP Developer, Palo Alto, Jan 2020

  7. 07

    Job Expectations

    Discuss your expectations for the role.

    From SAP Developer, Palo Alto, Jan 2020

SAP other questions

  1. 01

    Poisoned Wine Problem

    You have 1000 bottles of wine, one is poisoned. You have 10 rats and 1 day to determine the poisoned bottle. How do you identify it?

    From SAP STAR Program | Interview Experience | Technical & HR | On-Campus | Result: Rejected

  2. 02

    Two Guards (Knights and Knaves) Problem

    There are two doors, two guards (one always tells the truth, the other always lies). You can ask one yes/no question to find the door with the diamond. What question do you ask?

    From SAP STAR Program | Interview Experience | Technical & HR | On-Campus | Result: Rejected

  3. 03

    Explain SQL indexes and how they work internally

    Describe what a SQL index is, the underlying B‑tree structure, when to use an index, and the trade‑offs it introduces, especially regarding write performance.

    From [Interview Experience] SAP Concur – Software Engineer – USA (L1B Visa) | Got Offer ✅

  4. 04

    Find unique rows in a SQL table

    Given a SQL table, explain how to retrieve rows that are unique using DISTINCT, GROUP BY, or other approaches, and discuss when each method is appropriate.

    From [Interview Experience] SAP Concur – Software Engineer – USA (L1B Visa) | Got Offer ✅

  5. 05

    Classes and Objects

    What are Classes and objects?

    From SAP Developer, Palo Alto, Jan 2020

  6. 06

    Java 'final' keyword

    What is the use of the final keyword in Java?

    From SAP Developer, Palo Alto, Jan 2020

  7. 07

    JRE and JVM

    What are JRE and JVM?

    From SAP Developer, Palo Alto, Jan 2020

SAP interview questions FAQ

What questions are asked in SAP interviews?

Candidates reported 29 distinct questions across 4 SAP interviews. 14 coding and DSA questions, 1 system design questions, 7 behavioural and HR questions, 7 other questions.

How difficult are SAP interview questions?

Of the questions candidates rated, 27% were easy, 73% medium and 0% hard.