Skip to main content

PayPal Coding Interview Questions

25 PayPal coding interview problems with full optimal solutions — 16 easy, 6 medium, 3 hard. Every problem ships with multiple approaches (brute-force first, then the optimal), complexity tables for each, company-specific tips on what an PayPal interviewer values, and a FAQ section.

Showing 3 problems of 25

  • #23hardsometimes asked

    23. Median of Two Sorted Arrays

    Find the median of two sorted arrays in O(log(min(m,n))) time without merging them. PayPal asks this hard binary-search problem to identify engineers who can handle statistical aggregations over large financial data streams where merging is prohibitively expensive.

  • #24hardsometimes asked

    24. Trapping Rain Water

    Compute the total volume of water trapped between bars of varying heights. PayPal asks this problem to gauge candidates' ability to reason about prefix/suffix aggregations — a pattern that underlies cumulative transaction balance calculations and risk exposure windows.

  • #25hardsometimes asked

    25. Sliding Window Maximum

    Return the maximum value in every sliding window of size k over an array in O(n) time. PayPal uses this deque-based problem to test candidates on streaming aggregation — a core primitive in real-time fraud scoring and transaction risk-window analysis.

Related interview-prep guides

Interview Platforms

Codility for Tech Interviews in 2026: The Complete Guide for Candidates

Codility is the dominant algorithmic-assessment platform across European tech hiring. Heavy in the UK, Germany, Netherlands, Nordics, and Poland where the company was founded. It scores candidates on both correctness and time complexity, runs 60-to-120-minute timed tests, and ships three products: Tests, CodeCheck, and CodeLive. This guide is what 2026 candidates need to know.

PayPal Coding Interview Questions — Full Solutions — InterviewChamp.AI