PayPal Interview Prep

PayPal’s coding bar is honest: solid LeetCode medium, clean implementations, sensible edge cases. Candidates who arrive braced for a Google-grade algorithm gauntlet usually find the rounds more conversational than expected, with interviewers probing whether you can break a problem down and state your assumptions rather than whether you have memorised a hard pattern.

Where the loop gets genuinely demanding is money. Design rounds are graded on correctness under failure, not on throughput charts. The questions that decide the outcome are what happens when a client retries a payment after a timeout and nobody knows whether the first attempt landed, how you keep a balance that always agrees with its history, and how two systems that disagree get reconciled. If you can answer those three without prompting, you are prepared for most of what PayPal asks.


Interview Process

Stage Duration Focus
Online Assessment 60-90 min 2 coding problems, HackerRank or Karat style
Recruiter Screen 30 min Background, level, team
Technical Screen 45-60 min Live coding, medium
Onsite: Coding 45-60 min DSA plus clean code and edge cases
Onsite: System Design 60 min Payments flow, mid-level and above
Onsite: Role Specialisation 45-60 min OOD, API design, or your own domain
Hiring Manager / Behavioural 45-60 min Projects, ownership, collaboration

The design round decides your level, and the role-specialisation round changes shape with the team: a backend payments team probes consistency and idempotency, a risk team probes rules and data handling, a mobile or web team probes client architecture. Ask the recruiter which specialisation round you are getting, because it is the one you can actually target. System design typically appears from mid-level upward.


What PayPal Actually Tests

Derived from 103 reported PayPal-tagged problems. Difficulty mix:

Difficulty Count Share
Easy 16 16%
Medium 70 68%
Hard 17 17%

Hard problems are a real but minority share. Medium fluency wins most rounds; Hard shows up late in the loop.

Where those problems fall by pattern:

Rank Pattern Problems Share of list
1 Arrays & Hashing 16 16%
2 Dynamic Programming 16 16%
3 Binary Search 13 13%
4 Sliding Window & Two Pointers 11 11%
5 Strings 9 9%
6 Graphs 7 7%
7 Intervals, Greedy & Sorting 5 5%
8 Design (Coding) 4 4%
9 Backtracking 4 4%
10 Stack & Monotonic Stack 4 4%

PayPal Signature Problems

These rank high on PayPal’s list but are reported by few other companies — the questions that are distinctively theirs rather than generic interview classics. The last column is how many of the 142 companies on this site report each one.

# Problem Pattern Difficulty Also asked at Link
1 Zigzag Conversion String Medium 13 of 142 Solve →
2 Find Words That Can Be Formed by Characters Counting + Hash Table Easy 6 of 142 LeetCode →
3 Count Vowel Strings in Ranges Prefix Sum Medium 8 of 142 LeetCode →
4 Maximum Number of Integers to Choose From a Range I Binary Search + Greedy Medium 2 of 142 LeetCode →
5 Meeting Scheduler Two Pointers Medium 10 of 142 LeetCode →
6 Maximum Sum Obtained of Any Permutation Prefix Sum + Greedy Medium 2 of 142 LeetCode →
7 Minimum Non-Zero Product of the Array Elements Greedy Medium 2 of 142 LeetCode →
8 Number of Valid Move Combinations On Chessboard Backtracking Hard 2 of 142 LeetCode →
9 Count Array Pairs Divisible by K Euclidean Algorithm + GCD Hard 3 of 142 LeetCode →
10 Paint House III DP Hard 3 of 142 LeetCode →
11 Time Needed to Rearrange a Binary String DP Medium 5 of 142 LeetCode →
12 Pairs of Songs With Total Durations Divisible by 60 Counting + Hash Table Medium 7 of 142 LeetCode →
13 3Sum Smaller Binary Search + Two Pointers Medium 5 of 142 LeetCode →
14 Minimum Increment to Make Array Unique Greedy Medium 6 of 142 LeetCode →

If you are short on time, these carry more PayPal-specific signal per hour than the universal top-100 lists.


System Design (HLD) Problems Asked at PayPal

# Problem Difficulty Link
1 Payment System Advanced Read →
2 Digital Wallet Advanced Read →
3 Rules Engine (Risk and Fraud Rules) Intermediate Read →
4 Notification System (Webhook Delivery) Intermediate Read →
5 Message Queue Advanced Read →
6 Delayed Trigger Service (Retries and Settlement) Intermediate Read →
7 Unique ID Generator (Transaction IDs) Beginner Read →
8 Rate Limiter (Merchant API Quotas) Beginner Read →
9 Metrics and Monitoring System Intermediate Read →

LLD / Machine Coding Problems Asked at PayPal

The specialisation round is often object-oriented design or API design rather than large-scale architecture. Model the domain in classes, then handle a new requirement — a refund, a currency, a second payment method — without rewriting the model.

# Problem Difficulty Link
1 Payment Wallet Intermediate Read →
2 Splitwise (Balance Settlement) Intermediate Read →
3 Order Management System Intermediate Read →
4 E-commerce Cart Intermediate Read →
5 Rate Limiter Intermediate Read →

DSA Problems Asked at PayPal

85 problems across 12 pattern groups. Each group is allocated in proportion to its real share of PayPal’s tagged list, then filled with the highest-frequency problems in that group — so the weight here matches the distribution above rather than burying graph and tree work under the usual array classics.

Dynamic Programming

State definition is the whole battle. Say the recurrence out loud before you write the table. Showing the top 14 of 15 on the list.

# Problem Pattern Difficulty Link
1 Longest Increasing Subsequence LIS + Binary Search Medium Solve →
2 Maximal Square DP Medium Solve →
3 Coin Change Complete Knapsack + Knapsack Problem Medium Solve →
4 Paint House III DP Hard LeetCode →
5 Time Needed to Rearrange a Binary String DP Medium LeetCode →
6 Best Time to Buy and Sell Stock DP Easy Solve →
7 Maximum Subarray Divide and Conquer + DP Medium Solve →
8 Palindromic Substrings Two Pointers + DP Medium Solve →
9 House Robber DP Medium Solve →
10 Best Time to Buy and Sell Stock III DP Hard Solve →
11 Climbing Stairs Memoization + DP Easy Solve →
12 Jump Game Greedy + DP Medium Solve →
13 Longest String Chain Two Pointers + DP Medium Solve →
14 Minimum Number of Removals to Make Mountain Array Binary Search + Greedy Hard LeetCode →

Arrays & Hashing

Prefix sums, counting, and grid walks. The warm-up round, and the one people get careless on. All 14 on the list.

# Problem Pattern Difficulty Link
15 Minimum Absolute Difference Sorting + Array Easy Solve →
16 Product of Array Except Self Prefix Sum Medium Solve →
17 Smallest Greater Multiple Made of Two Digits Enumeration + Math Medium LeetCode →
18 Two Sum Hash Table + Array Easy Solve →
19 Pairs of Songs With Total Durations Divisible by 60 Counting + Hash Table Medium LeetCode →
20 Subarray Sum Equals K Prefix Sum Medium Solve →
21 Valid Sudoku Matrix + Hash Table Medium Solve →
22 Average Selling Price Database Easy LeetCode →
23 Degree of an Array Hash Table + Array Easy LeetCode →
24 Spiral Matrix Simulation + Matrix Medium Solve →
25 First Missing Positive Hash Table + Array Hard Solve →
26 Flatten Deeply Nested Array Implementation Medium LeetCode →
27 Insert Interval Array Medium LeetCode →
28 Nearest Exit from Entrance in Maze BFS Medium LeetCode →

Half of these are binary search on the answer, not on an array. Learn to spot the monotonic predicate. All 11 on the list.

# Problem Pattern Difficulty Link
29 Maximum Number of Integers to Choose From a Range I Binary Search + Greedy Medium LeetCode →
30 Maximum Number of Integers to Choose From a Range II Binary Search + Greedy Medium LeetCode →
31 Search in Rotated Sorted Array Binary Search Medium Solve →
32 Find the Smallest Divisor Given a Threshold Binary Search Medium Solve →
33 3Sum Smaller Binary Search + Two Pointers Medium LeetCode →
34 Random Pick with Weight Randomized + Prefix Sum Medium LeetCode →
35 Find Peak Element Binary Search Medium Solve →
36 Find First and Last Position of Element in Sorted Array Binary Search Medium Solve →
37 Koko Eating Bananas Binary Search Medium Solve →
38 Median of Two Sorted Arrays Divide and Conquer + Binary Search Hard Solve →
39 Missing Element in Sorted Array Binary Search Medium LeetCode →

Sliding Window & Two Pointers

Linear-time scans over arrays and strings. High volume, low variance — these should be automatic. All 10 on the list.

# Problem Pattern Difficulty Link
40 Maximum Frequency Score of a Subarray Sliding Window + Stack Hard LeetCode →
41 Meeting Scheduler Two Pointers Medium LeetCode →
42 Longest Substring Without Repeating Characters Sliding Window Medium Solve →
43 3Sum Two Pointers Medium Solve →
44 Container With Most Water Greedy + Two Pointers Medium Solve →
45 Divide Players Into Teams of Equal Skill Two Pointers Medium LeetCode →
46 Happy Number Floyd Cycle + Two Pointers Easy Solve →
47 Longest Substring Of All Vowels in Order Sliding Window Medium LeetCode →
48 Minimum Number of Swaps to Make the String Balanced Bracket Sequences + Stack Medium Solve →
49 Move Zeroes Two Pointers Easy Solve →

Strings

Parsing, transformation, and in-place edits. Clarify the character set and whitespace rules before you start. All 7 on the list.

# Problem Pattern Difficulty Link
50 Zigzag Conversion String Medium Solve →
51 Find Words That Can Be Formed by Characters Counting + Hash Table Easy LeetCode →
52 Count Vowel Strings in Ranges Prefix Sum Medium LeetCode →
53 Count the Number of Vowel Strings in Range Counting + String Easy LeetCode →
54 Group Anagrams Sorting + Hash Table Medium Solve →
55 Count Vowel Substrings of a String Hash Table + String Easy Solve →
56 Fizz Buzz Simulation + Math Easy Solve →

Graphs

Traversal, connectivity, ordering, and shortest paths. The hardest bucket to fake — either you have drilled it or you have not. All 6 on the list.

# Problem Pattern Difficulty Link
57 Number of Islands Union-Find + BFS Medium Solve →
58 Longest Consecutive Sequence Union-Find Medium Solve →
59 Smallest String With Swaps Union-Find + BFS Medium LeetCode →
60 Loud and Rich DAG + Topological Sort Medium LeetCode →
61 Course Schedule DAG + Topological Sort Medium Solve →
62 Minimum Edge Reversals So Every Node Is Reachable Graph + BFS Hard LeetCode →

Intervals, Greedy & Sorting

Sort, then make a local decision you can defend. Expect to justify why greedy is safe here. All 5 on the list.

# Problem Pattern Difficulty Link
63 Maximum Sum Obtained of Any Permutation Prefix Sum + Greedy Medium LeetCode →
64 Minimum Non-Zero Product of the Array Elements Greedy Medium LeetCode →
65 Merge Intervals Quicksort Medium Solve →
66 Minimum Increment to Make Array Unique Greedy Medium LeetCode →
67 Minimum Replacements to Sort the Array Greedy Hard LeetCode →

Backtracking

Enumerate with pruning. Interviewers look for a clean choose, explore, unchoose loop and a real complexity bound. All 4 on the list.

# Problem Pattern Difficulty Link
68 Number of Valid Move Combinations On Chessboard Backtracking Hard LeetCode →
69 Word Search Backtracking + DFS Medium Solve →
70 Subsets Backtracking + Bit Manipulation Medium Solve →
71 Combination Sum Backtracking Medium Solve →

Design (Coding)

Build a data structure to a spec. Graded on API shape and the complexity of each operation, not just correctness. All 4 on the list.

# Problem Pattern Difficulty Link
72 LRU Cache Doubly Linked List + Design Medium Solve →
73 Find Median from Data Stream Data Stream + Design Hard Solve →
74 LFU Cache Doubly Linked List + Design Hard Solve →
75 Design Twitter Linked List + Design Medium LeetCode →

Heap / Priority Queue

Top-k, streaming medians, and scheduling. Usually the difference between a passing and a timing-out solution. All 4 on the list.

# Problem Pattern Difficulty Link
76 Last Stone Weight Heap Easy Solve →
77 Maximum Number of Events That Can Be Attended Heap + Greedy Medium Solve →
78 Top K Frequent Elements Quickselect + Bucket Sort Medium Solve →
79 Kth Largest Element in an Array Quickselect + Divide and Conquer Medium Solve →

Prefix structures and substring matching. Common wherever autocomplete or search is part of the product. All 3 on the list.

# Problem Pattern Difficulty Link
80 Top K Frequent Words Bucket Sort + Trie Medium Solve →
81 Find the Index of the First Occurrence in a String Boyer–Moore String-Search Algorithm + KMP Easy Solve →
82 Longest Palindromic Substring Manacher + Two Pointers Medium Solve →

Stack & Monotonic Stack

Nearest-greater, parsing, and span problems. The monotonic variant is the one people miss. All 3 on the list.

# Problem Pattern Difficulty Link
83 Asteroid Collision Stack Medium Solve →
84 Valid Parentheses Bracket Sequences + Stack Easy Solve →
85 Decode String Stack Medium Solve →

PayPal’s Favourite Patterns (Ranked)

Rank Pattern Frequency Problems on list Start with
1 Dynamic Programming Very High 15 (17%) Longest Increasing Subsequence, Maximal Square, Coin Change
2 Arrays & Hashing High 14 (16%) Minimum Absolute Difference, Product of Array Except Self, Smallest Greater Multiple Made of Two Digits
3 Binary Search High 11 (12%) Maximum Number of Integers to Choose From a Range I, Maximum Number of Integers to Choose From a Range II, Search in Rotated Sorted Array
4 Sliding Window & Two Pointers Medium-High 10 (11%) Maximum Frequency Score of a Subarray, Meeting Scheduler, Longest Substring Without Repeating Characters
5 Strings Medium-High 7 (8%) Zigzag Conversion, Find Words That Can Be Formed by Characters, Count Vowel Strings in Ranges
6 Graphs Medium-High 6 (7%) Number of Islands, Longest Consecutive Sequence, Smallest String With Swaps
7 Intervals, Greedy & Sorting Medium 5 (6%) Maximum Sum Obtained of Any Permutation, Minimum Non-Zero Product of the Array Elements, Merge Intervals
8 Backtracking Medium 4 (4%) Number of Valid Move Combinations On Chessboard, Word Search, Subsets
9 Design (Coding) Medium 4 (4%) LRU Cache, Find Median from Data Stream, LFU Cache
10 Heap / Priority Queue Medium 4 (4%) Last Stone Weight, Maximum Number of Events That Can Be Attended, Top K Frequent Elements

How to read this: the top three rows are where your preparation hours should go. A candidate fluent in Dynamic Programming, Arrays & Hashing, Binary Search covers the bulk of what PayPal actually asks. The rest is insurance for the one round that goes somewhere unexpected.


Money-Movement Correctness: The Questions Behind the Question

Every PayPal design prompt eventually lands on one of these. Prepare the right-hand column as sentences you can say, not as concepts you recognise.

Concern The interviewer’s probe What a strong answer covers
Idempotency “The client retried and you do not know if the first call succeeded” Client-supplied key, dedup table storing the original response, expiry window, identical response on replay
Exactly-once “Your queue is at-least-once. Now what?” Effectively-once through idempotent handlers plus a dedup store; no claim that the transport guarantees it
Double-spend “Two withdrawals hit the same balance at the same moment” Conditional update or row lock, version checks, and what the loser of the race is told
Partial failure “You debited and the credit leg failed” Saga with compensation, a reversal entry rather than a delete, and the state machine that drives it
Ledger integrity “How do you know the balance is right?” Double-entry, immutable entries, derived balances, periodic invariant checks
Reconciliation “Your records and the bank’s disagree” Scheduled comparison, break report, tolerance rules, and an explicit human resolution path
Refunds and chargebacks “Money has to go back weeks later” Linked reversal referencing the original, partial refunds, and the limits on what can be reversed
Ordering “Events arrive out of order” Sequence numbers or versions per entity, idempotent application, and rejecting stale updates
Multi-currency “Same payout, two currencies” Store amount, currency, and the rate used; never persist only a converted value
Auditability “A regulator asks what happened to this payment” Immutable event history, correlation IDs across services, retention policy

If you have time for only one rehearsal, take a single payment from request to settlement and narrate every point where it could fail and what the system does. That one walkthrough covers most of this table.


Behavioural Round

# Question
1 Tell me about a bug that had financial or data-integrity consequences.
2 Tell me about a time you had to make a system safe to retry.
3 Tell me about an incident you were on call for. What did you change afterwards?
4 Tell me about a time you disagreed with a product decision on risk grounds.
5 Tell me about a migration you ran on a system that could not go down.
6 Tell me about a time you had to coordinate a change across several services.
7 Tell me about something you shipped that you later had to roll back.
8 Why PayPal, and what interests you about payments?

Payments engineering is risk engineering, so the stories that land are about caution, verification, and what you did when something went wrong — not about shipping quickly. Have one story where you deliberately slowed a launch down and were right to.


14-Day Prep Plan

Built from the pattern ranking above, so the heaviest topics get the most time.

Day Focus Problems
1 Dynamic Programming (part 1) Longest Increasing Subsequence, Maximal Square, Coin Change
2 Dynamic Programming (part 2) Paint House III, Time Needed to Rearrange a Binary String, Best Time to Buy and Sell Stock
3 Arrays & Hashing (part 1) Minimum Absolute Difference, Product of Array Except Self, Smallest Greater Multiple Made of Two Digits
4 Arrays & Hashing (part 2) Two Sum, Pairs of Songs With Total Durations Divisible by 60, Subarray Sum Equals K
5 Binary Search (part 1) Maximum Number of Integers to Choose From a Range I, Maximum Number of Integers to Choose From a Range II, Search in Rotated Sorted Array
6 Binary Search (part 2) Find the Smallest Divisor Given a Threshold, 3Sum Smaller, Random Pick with Weight
7 Sliding Window & Two Pointers Maximum Frequency Score of a Subarray, Meeting Scheduler, Longest Substring Without Repeating Characters
8 Strings Zigzag Conversion, Find Words That Can Be Formed by Characters, Count Vowel Strings in Ranges
9 Graphs Number of Islands, Longest Consecutive Sequence, Smallest String With Swaps
10 Intervals, Greedy & Sorting Maximum Sum Obtained of Any Permutation, Minimum Non-Zero Product of the Array Elements, Merge Intervals
11 Backtracking Number of Valid Move Combinations On Chessboard, Word Search, Subsets
12 Mock round Two problems in 45 minutes, timed, no hints. Simulate the real round.
13 Revision Redo the problems you failed or needed a hint on.
14 Light review + rest Re-read your pattern notes. Sleep early.

Tips for PayPal Interviews

  1. Say “idempotent” and then prove it. An idempotency key, a dedup store with the stored response, a defined expiry, and what the client sees on replay. Hand-waving it is the most common way strong engineers lose a payments design round.
  2. Design the ledger, not just the service. Double-entry records, immutable entries, balance as derived state, and an audit trail you can replay to explain any number. A balance column you mutate in place is the answer that gets picked apart.
  3. Plan the unhappy path before the happy one. A downstream call times out and the outcome is unknown: do you retry, reverse, or query? Say which, then name the dead-letter queue and the reconciliation job that catches what still slips through.
  4. Be explicit about where strong consistency is mandatory. Authorisation and balance checks need it; reporting, analytics, and notification feeds can be eventually consistent. Drawing that line yourself signals real experience.
  5. Have a concurrency answer ready. Two withdrawals arrive at once for the same account: optimistic locking with a version, a conditional write, or a row lock, and what each costs you under load.
  6. Bring compliance in lightly. Tokenisation, keeping card data out of your own scope, what you log and what you must never log. One sentence shows awareness; five minutes of it is a detour.
  7. Keep DSA at medium and write tests. The tagged list above is broad but not exotic. Interviewers consistently report caring about assumptions stated out loud, readable code, and edge cases you raise yourself.

Other Company Prep


Round structures, durations, and the shape of the role-specialisation round reflect commonly reported candidate experience rather than published PayPal documentation. The loop varies by org, level, and region, and design rounds are typically added from mid-level upward. Confirm the format with your recruiter.