Paypal logo PA
Verified Company Vault

Paypal DSA Interview Questions

106 curated coding interview questions directly asked in Paypal technical rounds, sorted by frequency with recency and difficulty diagnostics.

106 Total Questions
19 (18%) Easy Problems
69 (65%) Medium Problems
18 (17%) Hard Problems
🔥 Most Tested Topics:
Arrays (42)Core DSA (24)Strings (22)Trees (10)Binary Search (6)
📂 Sourced Datasets:
Last 3 monthsLast 6 monthsAll questionsOlder than 6 months
Showing 106 of 106 displayed
IDProblemDifficultyTopicPatternAcceptanceFrequencyRecency
347Top K Frequent ElementsMediumHeapPriority Queue66.4%100.0%3m
300Longest Increasing SubsequenceMediumDynamic ProgrammingState Transition59.4%100.0%6m
1200Minimum Absolute DifferenceEasyArraysSorting / Prefix / Scan75.1%100.0%6m
295Find Median from Data StreamHardHeapPriority Queue54.5%100.0%6m
6Zigzag ConversionMediumCore DSAImplementation / Reasoning54.2%100.0%all
33Search in Rotated Sorted ArrayMediumArrays; Binary SearchSorting / Prefix / Scan; Binary Search44.9%87.5%6m
2559Count Vowel Strings in RangesMediumStringsHashing / Sliding Window67.8%87.5%all
3Longest Substring Without Repeating CharactersMediumStrings; TreesHashing / Sliding Window; DFS / BFS; Sliding Window39.1%75.0%6m
3820Pythagorean Distance Nodes in a TreeMediumTreesDFS / BFS58.0%75.0%6m
735Asteroid CollisionMediumCore DSAImplementation / Reasoning47.9%75.0%6m
560Subarray Sum Equals KMediumArraysSorting / Prefix / Scan47.3%75.0%6m
146LRU CacheMediumDesignData Structure Design47.4%75.0%6m
1969Minimum Non-Zero Product of the Array ElementsMediumArraysSorting / Prefix / Scan37.6%75.0%all
56Merge IntervalsMediumArraysSorting / Prefix / Scan51.8%75.0%all
79Word SearchMediumStrings; Binary SearchHashing / Sliding Window; Binary Search47.4%75.0%all
1999Smallest Greater Multiple Made of Two DigitsMediumCore DSAImplementation / Reasoning48.2%75.0%all
2056Number of Valid Move Combinations On ChessboardHardStrings; BacktrackingHashing / Sliding Window; Backtracking48.7%75.0%all
200Number of IslandsMediumGraphsBFS / DFS / Topological Sort64.4%75.0%all
238Product of Array Except SelfMediumArraysSorting / Prefix / Scan68.9%75.0%all
2183Count Array Pairs Divisible by KHardArraysSorting / Prefix / Scan30.7%75.0%all
2380Time Needed to Rearrange a Binary StringMediumStringsHashing / Sliding Window53.0%75.0%all
2554Maximum Number of Integers to Choose From a Range IMediumArraysSorting / Prefix / Scan68.0%75.0%all
2586Count the Number of Vowel Strings in RangeEasyStringsHashing / Sliding Window74.3%75.0%all
2524Maximum Frequency Score of a SubarrayHardArraysSorting / Prefix / Scan36.5%75.0%all
2557Maximum Number of Integers to Choose From a Range IIMediumArraysSorting / Prefix / Scan35.0%75.0%all
1229Meeting SchedulerMediumGreedyGreedy55.2%75.0%all
1473Paint House IIIHardCore DSAImplementation / Reasoning61.2%75.0%all
1589Maximum Sum Obtained of Any PermutationMediumArrays; BacktrackingSorting / Prefix / Scan; Backtracking40.8%75.0%all
322Coin ChangeMediumDynamic ProgrammingState Transition48.4%75.0%all
221Maximal SquareMediumCore DSAImplementation / Reasoning50.3%75.0%all
1160Find Words That Can Be Formed by CharactersEasyStringsHashing / Sliding Window71.6%75.0%all
1Two SumEasyArraysSorting / Prefix / Scan; Two Pointers57.5%62.5%all
49Group AnagramsMediumStringsHashing / Sliding Window72.6%62.5%all
121Best Time to Buy and Sell StockEasyCore DSAImplementation / Reasoning56.8%62.5%all
1010Pairs of Songs With Total Durations Divisible by 60MediumCore DSAImplementation / Reasoning53.5%62.5%all
1283Find the Smallest Divisor Given a ThresholdMediumCore DSAImplementation / Reasoning65.9%62.5%all
198House RobberMediumDynamic ProgrammingState Transition53.2%62.5%all
53Maximum SubarrayMediumArraysSorting / Prefix / Scan53.3%62.5%all
1353Maximum Number of Events That Can Be AttendedMediumArraysSorting / Prefix / Scan39.0%62.5%all
1046Last Stone WeightEasyCore DSAImplementation / Reasoning66.5%62.5%all
11Container With Most WaterMediumCore DSATwo Pointers60.0%50.0%all
153SumMediumArraysSorting / Prefix / Scan39.1%50.0%all
20Valid ParenthesesEasyStringsHashing / Sliding Window44.2%50.0%all
42Trapping Rain WaterHardCore DSATwo Pointers67.4%50.0%all
75Sort ColorsMediumArraysSorting / Prefix / Scan69.6%50.0%all
2062Count Vowel Substrings of a StringEasyStrings; TreesHashing / Sliding Window; DFS / BFS73.2%50.0%all
851Loud and RichMediumCore DSAImplementation / Reasoning63.5%50.0%all
48Rotate ImageMediumArraysSorting / Prefix / Scan80.1%50.0%all
945Minimum Increment to Make Array UniqueMediumArraysSorting / Prefix / Scan60.7%50.0%all
528Random Pick with WeightMediumCore DSAImplementation / Reasoning49.1%50.0%all
162Find Peak ElementMediumBinary SearchBinary Search47.0%50.0%all
697Degree of an ArrayEasyArraysSorting / Prefix / Scan58.4%50.0%all
54Spiral MatrixMediumArraysSorting / Prefix / Scan56.8%50.0%all
875Koko Eating BananasMediumBinary SearchBinary Search50.0%50.0%all
647Palindromic SubstringsMediumStrings; TreesHashing / Sliding Window; DFS / BFS72.8%50.0%all
128Longest Consecutive SequenceMediumCore DSAImplementation / Reasoning47.1%50.0%all
460LFU CacheHardDesignData Structure Design49.2%50.0%all
36Valid SudokuMediumStrings; BacktrackingHashing / Sliding Window; Backtracking64.5%50.0%all
2593Sum SmallerMediumArraysSorting / Prefix / Scan51.4%50.0%all
780Reaching PointsHardCore DSAImplementation / Reasoning34.4%50.0%all
78SubsetsMediumBacktrackingBacktracking82.3%50.0%all
1202Smallest String With SwapsMediumStringsHashing / Sliding Window60.6%50.0%all
1209Remove All Adjacent Duplicates in String IIMediumArrays; StringsSorting / Prefix / Scan; Hashing / Sliding Window61.3%50.0%all
692Top K Frequent WordsMediumStrings; HeapHashing / Sliding Window; Priority Queue60.2%50.0%all
1251Average Selling PriceEasyCore DSAImplementation / Reasoning37.3%50.0%all
4Median of Two Sorted ArraysHardArrays; HeapSorting / Prefix / Scan; Priority Queue46.6%37.5%all
34Find First and Last Position of Element in Sorted ArrayMediumArraysSorting / Prefix / Scan48.9%37.5%all
88Merge Sorted ArrayEasyArraysSorting / Prefix / Scan54.9%37.5%all
152Maximum Product SubarrayMediumArraysSorting / Prefix / Scan36.4%37.5%all
242Valid AnagramEasyStringsHashing / Sliding Window68.1%37.5%all
2366Minimum Replacements to Sort the ArrayHardArraysSorting / Prefix / Scan53.1%37.5%all
68Text JustificationHardCore DSAImplementation / Reasoning51.2%37.5%all
355Design TwitterMediumDesignData Structure Design44.7%37.5%all
215Kth Largest Element in an ArrayMediumArrays; HeapSorting / Prefix / Scan; Priority Queue68.9%37.5%all
1671Minimum Number of Removals to Make Mountain ArrayHardArraysSorting / Prefix / Scan54.8%37.5%all
1963Minimum Number of Swaps to Make the String BalancedMediumArrays; StringsSorting / Prefix / Scan; Hashing / Sliding Window78.0%37.5%all
2491Divide Players Into Teams of Equal SkillMediumCore DSAImplementation / Reasoning68.9%37.5%all
41First Missing PositiveHardArraysSorting / Prefix / Scan42.9%37.5%all
1669Merge In Between Linked ListsMediumArrays; Linked ListSorting / Prefix / Scan; Two Pointers83.0%37.5%all
2697Lexicographically Smallest PalindromeEasyStrings; GraphsHashing / Sliding Window; BFS / DFS / Topological Sort81.4%37.5%all
2625Flatten Deeply Nested ArrayMediumArraysSorting / Prefix / Scan65.9%37.5%all
55Jump GameMediumGreedyGreedy40.9%37.5%all
202Happy NumberEasyCore DSAImplementation / Reasoning59.7%37.5%all
207Course ScheduleMediumGraphsBFS / DFS / Topological Sort51.4%37.5%all
240Search a 2D Matrix IIMediumArrays; Binary SearchSorting / Prefix / Scan; Binary Search57.3%37.5%all
1235Maximum Profit in Job SchedulingHardArraysSorting / Prefix / Scan54.7%37.5%all
124Binary Tree Maximum Path SumHardArrays; TreesSorting / Prefix / Scan; DFS / BFS42.3%37.5%all
283Move ZeroesEasyCore DSATwo Pointers63.8%37.5%all
994Rotting OrangesMediumCore DSAImplementation / Reasoning58.7%37.5%all
24Swap Nodes in PairsMediumTreesDFS / BFS69.5%37.5%all
1268Search Suggestions SystemMediumBinary SearchBinary Search65.2%37.5%all
1839Longest Substring Of All Vowels in OrderMediumStrings; TreesHashing / Sliding Window; DFS / BFS; Sliding Window51.8%37.5%all
297Serialize and Deserialize Binary TreeHardTrees; DesignDFS / BFS; Data Structure Design60.8%37.5%all
70Climbing StairsEasyDynamic ProgrammingState Transition54.1%37.5%all
1060Missing Element in Sorted ArrayMediumArraysSorting / Prefix / Scan59.7%37.5%all
412Fizz BuzzEasyCore DSAImplementation / Reasoning75.5%37.5%all
73Set Matrix ZeroesMediumArraysSorting / Prefix / Scan62.9%37.5%all
1926Nearest Exit from Entrance in MazeMediumCore DSAImplementation / Reasoning48.6%37.5%all
1854Maximum Population YearEasyArraysSorting / Prefix / Scan64.1%37.5%all
1048Longest String ChainMediumStringsHashing / Sliding Window63.0%37.5%all
2858Minimum Edge Reversals So Every Node Is ReachableHardArrays; TreesSorting / Prefix / Scan; DFS / BFS59.5%37.5%all
57Insert IntervalMediumArraysSorting / Prefix / Scan45.2%37.5%all
123Best Time to Buy and Sell Stock IIIHardCore DSAImplementation / Reasoning53.7%37.5%all
5Longest Palindromic SubstringMediumStrings; TreesHashing / Sliding Window; DFS / BFS37.8%37.5%all
387First Unique Character in a StringEasyStringsHashing / Sliding Window65.5%37.5%all
39Combination SumMediumArrays; BacktrackingSorting / Prefix / Scan; Backtracking76.5%37.5%all