SAP Coding Interview Questions

45 DSA problems tagged as asked in SAP coding interviews and online assessments. Below are all 45: 17 easy, 22 medium and 6 hard. Start with the easy ones, then move to medium. Practise free on InternHack and track your progress.

SAP DSA problems, easiest first

  1. Best Time to Buy and Sell Stock (Easy)
  2. Fibonacci Number (Easy)
  3. Implement Queue using Stacks (Easy)
  4. Linked List Cycle (Easy)
  5. Longest Common Prefix (Easy)
  6. Move Zeroes (Easy)
  7. Palindrome Linked List (Easy)
  8. Palindrome Number (Easy)
  9. Remove Duplicates from Sorted Array (Easy)
  10. Reverse Linked List (Easy)
  11. Roman to Integer (Easy)
  12. Same Tree (Easy)
  13. Sort Array by Increasing Frequency (Easy)
  14. Two Sum (Easy)
  15. Valid Palindrome (Easy)
  16. Valid Parentheses (Easy)
  17. Valid Perfect Square (Easy)
  18. Add Two Numbers (Medium)
  19. Binary Search Tree to Greater Sum Tree (Medium)
  20. Coin Change (Medium)
  21. Container With Most Water (Medium)
  22. Count Primes (Medium)
  23. Group Anagrams (Medium)
  24. Kth Largest Element in an Array (Medium)
  25. Leftmost Column with at Least a One (Medium)
  26. Longest Consecutive Sequence (Medium)
  27. Longest Palindromic Substring (Medium)
  28. Longest Substring Without Repeating Characters (Medium)
  29. Lowest Common Ancestor of a Binary Tree (Medium)
  30. LRU Cache (Medium)
  31. Maximal Square (Medium)
  32. Maximum Number of Weeks for Which You Can Work (Medium)
  33. Maximum Subarray (Medium)
  34. Merge Intervals (Medium)
  35. Movie Rating (Medium)
  36. Number of Islands (Medium)
  37. Product of Array Except Self (Medium)
  38. Search in Rotated Sorted Array (Medium)
  39. Word Break (Medium)
  40. Candy (Hard)
  41. Count Increasing Quadruplets (Hard)
  42. Count the Number of Infection Sequences (Hard)
  43. Maximum Path Quality of a Graph (Hard)
  44. Maximum Students Taking Exam (Hard)
  45. Trapping Rain Water (Hard)

Prepare for the rest of the SAP process

Other companies