SAP Coding Interview Questions
32 coding problems are tagged as asked at SAP in interviews and online assessments reported by candidates. By difficulty they split into 13 basic, 13 intermediate and 6 advanced. The topics they most often combine with are Array, String, Hash Table, Two Pointers.
Reported questions change over time and are not a guarantee of what you will be asked, so use the list to see which patterns SAP tends to test. For each problem, practise explaining your approach, its time and space cost and the edge cases before you write the code; every problem opens in an editor that runs your code against test cases.
Coding problems
- Two Sum (Basic)
- Best Time to Buy and Sell Stock (Basic)
- Maximum Subarray (Intermediate)
- Valid Parentheses (Basic)
- Longest Substring Without Repeats (Intermediate)
- Move Zeroes (Basic)
- Coin Change (Intermediate)
- Valid Palindrome (Basic)
- Kth Largest Element (Intermediate)
- Container With Most Water (Intermediate)
- Trapping Rain Water (Advanced)
- Longest Palindromic Substring (Intermediate)
- Ransom Note (Basic)
- Daily Temperatures (Intermediate)
- Count Primes (Intermediate)
- Search in a Rotated Sorted Array (Advanced)
- Merge Intervals (Intermediate)
- Candy Distribution (Advanced)
- Container With Most Water (Intermediate)
- Minimum Window Substring (Advanced)
- LRU Cache Operations (Basic)
- Maximum Path Quality (Basic)
- Reverse Linked List (Basic)
- Palindrome Linked List (Basic)
- Lowest Common Ancestor of Two Values (Intermediate)
- Same Tree (Basic)
- Number of Islands (Basic)
- Maximal Square (Intermediate)
- Maximum Students Taking Exam (Advanced)
- Search a 2D Matrix (Intermediate)
- Count Increasing Quadruplets (Advanced)
- Implement Queue Using Stacks (Basic)
Related
- SAP basic problems
- SAP intermediate problems
- SAP Array problems
- SAP String problems
- Company interview roadmaps
- All interview guides
Frequently asked questions
How should I use the SAP problem list?
Start with the basic problems, then the intermediate and advanced ones, and note which topics repeat. Solve each under a timer, then read the explanation.
Are these the exact SAP interview questions?
They are problems candidates reported being asked. Companies rotate questions, so use them to learn the patterns, not to predict the exact question.