All company sheets
Stripe logo

Stripe DSA interview questions

62 problems to practise before your Stripe online test or coding round. Most widely asked first.

62
Questions
12
Easy
42
Medium
8
Hard

Commonly reported. Problems candidates often report from this company’s coding rounds. These are Astra’s own tags, not an official question list.

Stripe is hiring · 104 open roles on Astra right nowView roles

62 questions

  1. 1

    Two Sum II - Input Array Is Sorted

    EasyArrayTagged at 7 companies
  2. 2

    Check if a Binary Tree is Height-Balanced

    EasyRecursionTagged at 7 companies
  3. 3

    Guess Number Higher or Lower (API Game)

    EasyBinary SearchTagged at 7 companies
  4. 4

    Find Two Indices That Sum to a Target Value

    EasyArrayTagged at 7 companies
  5. 5

    Resource Allocation Matcher

    EasyTwo PointersTagged at 7 companies
  6. 6

    Squares of a Sorted Array

    EasyTwo PointersTagged at 7 companies
  7. 7

    Find All Combinations that Sum to Target II (No Duplicates)

    MediumRecursionTagged at 7 companies
  8. 8

    Find the Maximum Area of an Island

    MediumRecursionTagged at 7 companies
  9. 9

    Find the Number of Provinces in a Country

    MediumRecursionTagged at 7 companies
  10. 10

    Find First and Last Position of Element in Sorted Array

    MediumBinary SearchTagged at 7 companies
  11. 11

    Solve the Aggressive Cows Problem

    MediumBinary SearchTagged at 7 companies
  12. 12

    Search in Rotated Sorted Array II (with Duplicates)

    MediumBinary SearchTagged at 7 companies
  13. 13

    Search in a Bitonic (Mountain) Array

    MediumBinary SearchTagged at 7 companies
  14. 14

    Find the Minimum Limit of Balls in a Bag

    MediumBinary SearchTagged at 7 companies
  15. 15

    Count the Number of Matching Subsequences

    MediumBinary SearchTagged at 7 companies
  16. 16

    Find Minimum Time to Complete All Trips

    MediumBinary SearchTagged at 7 companies
  17. 17

    Rotate an Array to the Right by K Steps

    MediumArrayTagged at 7 companies
  18. 18

    Merge Overlapping Intervals in an Array

    MediumArrayTagged at 7 companies
  19. 19

    Generate the Next Lexicographical Permutation

    MediumArrayTagged at 7 companies
  20. 20

    Generate All Subsets (The Power Set)

    MediumArrayTagged at 7 companies
  21. 21

    Find the Longest Subarray of 1s After Deleting One Element

    MediumArrayTagged at 7 companies
  22. 22

    Find Intersections of Two Interval Lists

    MediumArrayTagged at 7 companies
  23. 23

    Financial Fraud Detection

    MediumArrayTagged at 7 companies
  24. 24

    Network Uptime Longest Streak

    MediumSliding WindowTagged at 7 companies
  25. 25

    Traffic Congestion Relief Window

    MediumSliding WindowTagged at 7 companies
  26. 26

    Risk Management Portfolio Balancing

    MediumTwo PointersTagged at 7 companies
  27. 27

    Maximum Points You Can Obtain from Cards

    MediumSliding WindowTagged at 7 companies
  28. 28

    Longest Palindrome

    EasyStringTagged at 6 companies
  29. 29

    Count Number of Recent Calls in a Ping Counter

    EasyStack and QueueTagged at 6 companies
  30. 30

    Reverse a Singly Linked List Iteratively

    EasyLinkedListTagged at 6 companies
  31. 31

    Check if a Linked List is Sorted

    EasyLinkedListTagged at 6 companies
  32. 32

    Find the Maximum Depth of an N-ary Tree

    EasyTreeTagged at 6 companies
  33. 33

    Find the Longest Common Prefix of Strings

    EasyStringTagged at 6 companies
  34. 34

    Unique Paths

    MediumDynamic ProgrammingTagged at 6 companies
  35. 35

    Minimum Path Sum in Grid

    MediumDPTagged at 6 companies
  36. 36

    Largest Divisible Subset

    MediumDPTagged at 6 companies
  37. 37

    Maximum Number of Non-Overlapping Subarrays With Sum Equals Target

    MediumDPTagged at 6 companies
  38. 38

    Evaluate Arithmetic Expression in Reverse Polish Notation

    MediumStack and QueueTagged at 6 companies
  39. 39

    Simplify Unix-Style Absolute File System Path

    MediumStack and QueueTagged at 6 companies
  40. 40

    Implement Basic Calculator II with Multiplication and Division

    MediumStack and QueueTagged at 6 companies
  41. 41

    Validate Stack Sequences with Push and Pop Operations

    MediumStack and QueueTagged at 6 companies
  42. 42

    Sort a Linked List Using Insertion Sort

    MediumLinkedListTagged at 6 companies
  43. 43

    Reverse a Doubly Linked List

    MediumLinkedListTagged at 6 companies
  44. 44

    Implement a Basic Circular Linked List

    MediumLinkedListTagged at 6 companies
  45. 45

    Segregate Even and Odd Nodes in a Linked List

    MediumLinkedListTagged at 6 companies
  46. 46

    Find Triplet with a Given Sum in a Doubly Linked List

    MediumLinkedListTagged at 6 companies
  47. 47

    Merge Two Sorted Lists in Reverse Order

    MediumLinkedListTagged at 6 companies
  48. 48

    Count Good Nodes in a Binary Tree (Amazon)

    MediumTreeTagged at 6 companies
  49. 49

    Count All Palindromic Substrings in a String

    MediumStringTagged at 6 companies
  50. 50

    Reverse Words in a String (O(1) Space)

    MediumStringTagged at 6 companies
  51. 51

    Find the Longest Substring with No Repeating Characters

    MediumStringTagged at 6 companies
  52. 52

    Solve the N-Queens Puzzle

    HardRecursionTagged at 6 companies
  53. 53

    Find a Peak Element in a 2D Grid

    HardBinary SearchTagged at 6 companies
  54. 54

    Find the K-th Smallest Prime Fraction

    HardBinary SearchTagged at 6 companies
  55. 55

    Meeting Rooms II

    MediumHeapTagged at 5 companies
  56. 56

    Bellman-Ford Algorithm

    MediumGraphTagged at 5 companies
  57. 57

    Skyscanner Flight Aggregator

    MediumGraphTagged at 5 companies
  58. 58

    Binary Tree Maximum Path Sum

    HardTreeTagged at 5 companies
  59. 59

    Serialize and Deserialize a Binary Tree (Level-Order)

    HardStack and QueueTagged at 5 companies
  60. 60

    Swap Nodes in a Linked List in k-Group (Recursive)

    HardLinkedListTagged at 5 companies
  61. 61

    Implement a B-Tree (Conceptual)

    HardTreeTagged at 5 companies
  62. 62

    Implement the Rabin-Karp String Matching Algorithm

    HardStringTagged at 5 companies

More company sheets