Interview Intel · SAP

SAP coding interview
questions, leaked.

39 problems reported across recent SAP interviews. Top patterns: array, dynamic programming, hash table. The list below is what most reported candidates actually saw, plus the honest play if you can't grind all of it.

Founder's read

SAP's assessment is array-heavy and deceptively layered. You're looking at 39 problems split 15 easy, 18 medium, 6 hard, but arrays dominate 23 of them. That's not a hint. That's the shape of the filter. You'll see two-pointers, dynamic programming, and hash tables woven through the rest, and if you hit a wall on the live OA, StealthCoder runs invisibly and surfaces a working solution in seconds. The real edge isn't knowing every pattern. It's not blanking when one shows up.

Tracked problems
39
Easy
15/ 38%
Medium
18/ 46%
Hard
6/ 15%

Top problems at SAP

leaked_problems.csv39 rows
#ProblemDiffFrequency
01Two SumEASY
100.0
02Container With Most WaterMEDIUM
91.8
03Maximum Students Taking ExamHARD
91.8
04Count Increasing QuadrupletsHARD
91.8
05Count the Number of Infection SequencesHARD
91.8
06Maximum Path Quality of a GraphHARD
91.8
07Movie RatingMEDIUM
91.8
08Longest Common PrefixEASY
89.3
09Valid ParenthesesEASY
83.2
10Number of IslandsMEDIUM
79.4
11Valid PalindromeEASY
69.6
12Maximum SubarrayMEDIUM
69.6
13Trapping Rain WaterHARD
69.6
14Reverse Linked ListEASY
69.6
15Maximal SquareMEDIUM
69.6
16Maximum Number of Weeks for Which You Can WorkMEDIUM
62.7
17Remove Duplicates from Sorted ArrayEASY
62.7
18Longest Consecutive SequenceMEDIUM
62.7
19Kth Largest Element in an ArrayMEDIUM
62.7
20Daily TemperaturesMEDIUM
62.7
21Best Time to Buy and Sell StockEASY
62.7
22Leftmost Column with at Least a OneMEDIUM
62.7
23Longest Palindromic SubstringMEDIUM
62.7
24Rotate StringEASY
62.7
25Group AnagramsMEDIUM
52.9
26Word BreakMEDIUM
52.9
27Linked List CycleEASY
52.9
28Coin ChangeMEDIUM
52.9
29Fibonacci NumberEASY
52.9
30Monotone Increasing DigitsMEDIUM
52.9
31Sort Array by Increasing FrequencyEASY
52.9
32Sqrt(x)EASY
52.9
33Valid Perfect SquareEASY
52.9
34Maximum Employees to Be Invited to a MeetingHARD
52.9
35Maximum Depth of Binary TreeEASY
52.9
36LRU CacheMEDIUM
52.9
37Max Consecutive Ones IIIMEDIUM
52.9
38Binary Search Tree to Greater Sum TreeMEDIUM
52.9
39Move ZeroesEASY
52.9

Frequencies derived from public community-tagged interview reports. Click a row to view on LeetCode.

The hedge

You have a week, maybe less. You can't out-grind the list above. StealthCoder runs invisibly during the actual SAP OA. The proctor cannot see it. Screen share cannot detect it. Built because the OA filter rejects engineers who'd pass the on-site. That's a broken filter. This is the workaround.

Get StealthCoder
Topic distribution
What this means

Arrays are the throughline here. Every third problem touches them, often paired with two-pointers or DP for medium and hard. Two Sum and Container With Most Water are your bread and butter on the easy and medium side. The hard tier pivots to DP-array hybrids like Maximum Students Taking Exam and Trapping Rain Water, which require both pattern recognition and composure under time pressure. Hash tables and strings are present but secondary. Study arrays and two-pointers first, then DP. If you've drilled the medium-tier array problems, you'll recognize the shape of the hard ones. If you haven't, or you blank mid-assessment, StealthCoder is your safety net on the live OA.

Companies with similar patterns

If you prepped for SAP, these companies recycle ~60% of the same topics.

The honest play

You've seen the list. Now make sure you pass SAP.

Memorizing every problem above in a week is a fantasy. StealthCoder is the hedge: an AI overlay that's invisible during screen share. It reads the problem on screen and surfaces a working solution in under 2 seconds. Built because the OA filter rejects engineers who'd pass the on-site. That's a broken filter. This is the workaround. Works on HackerRank, CodeSignal, CoderPad, and Karat.

SAP interview FAQ

How many array problems should I solve before the SAP assessment?+

SAP's list has 23 array problems out of 39 total. Hit at least 15 to 20 before the OA. Prioritize two-pointers and DP subsets first. Two Sum and Container With Most Water are your baseline. Then move to Maximum Subarray and Trapping Rain Water patterns.

Is dynamic programming required for SAP's assessment?+

Yes. DP appears in 10 of 39 problems and shows up in 4 of the 6 hard problems. You don't need to master it, but you need to recognize when a problem is asking for cumulative state or optimal subsequences. MaximalSquare and Maximum Subarray are the gateway problems.

Should I study two-pointers or hash tables first?+

Two-pointers. It appears in 7 problems and is baked into several medium-tier array questions like Container With Most Water. Hash tables appear in 7 as well, but they're often auxiliary to the main pattern. Solve two-pointers problems first, hash tables second.

What's the hardest topic in SAP's assessment?+

The intersection of arrays, DP, and bit manipulation. Problems like Maximum Students Taking Exam and Count Increasing Quadruplets require you to track multiple constraints simultaneously. These are rare but worth one deliberate run-through before the OA.

Are strings and stacks important for SAP?+

Secondary. Strings appear in 7 problems, stacks in 3. Valid Parentheses and Longest Common Prefix are your baseline. They're lower frequency than arrays and two-pointers, so don't lead with them unless you've already drilled the core array and DP patterns.

Problem frequencies sourced from public community-maintained interview-report repos. Problems, ratings, and trademarks are property of LeetCode and SAP. StealthCoder is not affiliated with SAP.