# Paypal Coding Interview Questions

> 106 DSA problems asked in Paypal coding interviews and online assessments, sorted easiest first with hints. Free practice for placements on InternHack.

Canonical: https://www.internhack.in/learn/dsa/companies/paypal
Last updated: 2026-11-28

106 DSA problems tagged as asked in Paypal coding interviews and online assessments. Below are the first 100 of 106: 18 easy, 63 medium and 19 hard. Start with the easy ones, then move to medium. Practise free on InternHack and track your progress.

## Paypal DSA problems, easiest first

1. [Average Selling Price](https://www.internhack.in/learn/dsa/problem/average-selling-price) (Easy)
2. [Best Time to Buy and Sell Stock](https://www.internhack.in/learn/dsa/problem/best-time-to-buy-and-sell-stock) (Easy)
3. [Climbing Stairs](https://www.internhack.in/learn/dsa/problem/climbing-stairs) (Easy)
4. [Count the Number of Vowel Strings in Range](https://www.internhack.in/learn/dsa/problem/count-the-number-of-vowel-strings-in-range) (Easy)
5. [Count Vowel Substrings of a String](https://www.internhack.in/learn/dsa/problem/count-vowel-substrings-of-a-string) (Easy)
6. [Degree of an Array](https://www.internhack.in/learn/dsa/problem/degree-of-an-array) (Easy)
7. [Find Words That Can Be Formed by Characters](https://www.internhack.in/learn/dsa/problem/find-words-that-can-be-formed-by-characters) (Easy)
8. [Fizz Buzz](https://www.internhack.in/learn/dsa/problem/fizz-buzz) (Easy)
9. [Happy Number](https://www.internhack.in/learn/dsa/problem/happy-number) (Easy)
10. [Last Stone Weight](https://www.internhack.in/learn/dsa/problem/last-stone-weight) (Easy)
11. [Lexicographically Smallest Palindrome](https://www.internhack.in/learn/dsa/problem/lexicographically-smallest-palindrome) (Easy)
12. [Maximum Population Year](https://www.internhack.in/learn/dsa/problem/maximum-population-year) (Easy)
13. [Merge Sorted Array](https://www.internhack.in/learn/dsa/problem/merge-sorted-array) (Easy)
14. [Minimum Absolute Difference](https://www.internhack.in/learn/dsa/problem/minimum-absolute-difference) (Easy)
15. [Move Zeroes](https://www.internhack.in/learn/dsa/problem/move-zeroes) (Easy)
16. [Two Sum](https://www.internhack.in/learn/dsa/problem/two-sum) (Easy)
17. [Valid Anagram](https://www.internhack.in/learn/dsa/problem/valid-anagram) (Easy)
18. [Valid Parentheses](https://www.internhack.in/learn/dsa/problem/valid-parentheses) (Easy)
19. [3Sum](https://www.internhack.in/learn/dsa/problem/3sum) (Medium)
20. [Asteroid Collision](https://www.internhack.in/learn/dsa/problem/asteroid-collision) (Medium)
21. [Container With Most Water](https://www.internhack.in/learn/dsa/problem/container-with-most-water) (Medium)
22. [Count Vowel Strings in Ranges](https://www.internhack.in/learn/dsa/problem/count-vowel-strings-in-ranges) (Medium)
23. [Course Schedule](https://www.internhack.in/learn/dsa/problem/course-schedule) (Medium)
24. [Divide Players Into Teams of Equal Skill](https://www.internhack.in/learn/dsa/problem/divide-players-into-teams-of-equal-skill) (Medium)
25. [Find First and Last Position of Element in Sorted Array](https://www.internhack.in/learn/dsa/problem/find-first-and-last-position-of-element-in-sorted-array) (Medium)
26. [Find Peak Element](https://www.internhack.in/learn/dsa/problem/find-peak-element) (Medium)
27. [Find the Smallest Divisor Given a Threshold](https://www.internhack.in/learn/dsa/problem/find-the-smallest-divisor-given-a-threshold) (Medium)
28. [Flatten Deeply Nested Array](https://www.internhack.in/learn/dsa/problem/flatten-deeply-nested-array) (Medium)
29. [Group Anagrams](https://www.internhack.in/learn/dsa/problem/group-anagrams) (Medium)
30. [House Robber](https://www.internhack.in/learn/dsa/problem/house-robber) (Medium)
31. [Insert Interval](https://www.internhack.in/learn/dsa/problem/insert-interval) (Medium)
32. [Jump Game](https://www.internhack.in/learn/dsa/problem/jump-game) (Medium)
33. [Koko Eating Bananas](https://www.internhack.in/learn/dsa/problem/koko-eating-bananas) (Medium)
34. [Kth Largest Element in an Array](https://www.internhack.in/learn/dsa/problem/kth-largest-element-in-an-array) (Medium)
35. [Longest Consecutive Sequence](https://www.internhack.in/learn/dsa/problem/longest-consecutive-sequence) (Medium)
36. [Longest String Chain](https://www.internhack.in/learn/dsa/problem/longest-string-chain) (Medium)
37. [Longest Substring Of All Vowels in Order](https://www.internhack.in/learn/dsa/problem/longest-substring-of-all-vowels-in-order) (Medium)
38. [Longest Substring Without Repeating Characters](https://www.internhack.in/learn/dsa/problem/longest-substring-without-repeating-characters) (Medium)
39. [Loud and Rich](https://www.internhack.in/learn/dsa/problem/loud-and-rich) (Medium)
40. [LRU Cache](https://www.internhack.in/learn/dsa/problem/lru-cache) (Medium)
41. [Maximal Square](https://www.internhack.in/learn/dsa/problem/maximal-square) (Medium)
42. [Maximum Number of Events That Can Be Attended](https://www.internhack.in/learn/dsa/problem/maximum-number-of-events-that-can-be-attended) (Medium)
43. [Maximum Number of Integers to Choose From a Range I](https://www.internhack.in/learn/dsa/problem/maximum-number-of-integers-to-choose-from-a-range-i) (Medium)
44. [Maximum Number of Integers to Choose From a Range II](https://www.internhack.in/learn/dsa/problem/maximum-number-of-integers-to-choose-from-a-range-ii) (Medium)
45. [Maximum Product Subarray](https://www.internhack.in/learn/dsa/problem/maximum-product-subarray) (Medium)
46. [Maximum Subarray](https://www.internhack.in/learn/dsa/problem/maximum-subarray) (Medium)
47. [Maximum Sum Obtained of Any Permutation](https://www.internhack.in/learn/dsa/problem/maximum-sum-obtained-of-any-permutation) (Medium)
48. [Meeting Scheduler](https://www.internhack.in/learn/dsa/problem/meeting-scheduler) (Medium)
49. [Merge In Between Linked Lists](https://www.internhack.in/learn/dsa/problem/merge-in-between-linked-lists) (Medium)
50. [Merge Intervals](https://www.internhack.in/learn/dsa/problem/merge-intervals) (Medium)
51. [Minimum Increment to Make Array Unique](https://www.internhack.in/learn/dsa/problem/minimum-increment-to-make-array-unique) (Medium)
52. [Minimum Non-Zero Product of the Array Elements](https://www.internhack.in/learn/dsa/problem/minimum-non-zero-product-of-the-array-elements) (Medium)
53. [Minimum Number of Swaps to Make the String Balanced](https://www.internhack.in/learn/dsa/problem/minimum-number-of-swaps-to-make-the-string-balanced) (Medium)
54. [Missing Element in Sorted Array](https://www.internhack.in/learn/dsa/problem/missing-element-in-sorted-array) (Medium)
55. [Nearest Exit from Entrance in Maze](https://www.internhack.in/learn/dsa/problem/nearest-exit-from-entrance-in-maze) (Medium)
56. [Number of Islands](https://www.internhack.in/learn/dsa/problem/number-of-islands) (Medium)
57. [Number of Substrings Containing All Three Characters](https://www.internhack.in/learn/dsa/problem/number-of-substrings-containing-all-three-characters) (Medium)
58. [Pairs of Songs With Total Durations Divisible by 60](https://www.internhack.in/learn/dsa/problem/pairs-of-songs-with-total-durations-divisible-by-60) (Medium)
59. [Palindromic Substrings](https://www.internhack.in/learn/dsa/problem/palindromic-substrings) (Medium)
60. [Product of Array Except Self](https://www.internhack.in/learn/dsa/problem/product-of-array-except-self) (Medium)
61. [Pythagorean Distance Nodes in a Tree](https://www.internhack.in/learn/dsa/problem/pythagorean-distance-nodes-in-a-tree) (Medium)
62. [Random Pick with Weight](https://www.internhack.in/learn/dsa/problem/random-pick-with-weight) (Medium)
63. [Remove All Adjacent Duplicates in String II](https://www.internhack.in/learn/dsa/problem/remove-all-adjacent-duplicates-in-string-ii) (Medium)
64. [Rotate Image](https://www.internhack.in/learn/dsa/problem/rotate-image) (Medium)
65. [Rotting Oranges](https://www.internhack.in/learn/dsa/problem/rotting-oranges) (Medium)
66. [Search a 2D Matrix II](https://www.internhack.in/learn/dsa/problem/search-a-2d-matrix-ii) (Medium)
67. [Search in Rotated Sorted Array](https://www.internhack.in/learn/dsa/problem/search-in-rotated-sorted-array) (Medium)
68. [Search Suggestions System](https://www.internhack.in/learn/dsa/problem/search-suggestions-system) (Medium)
69. [Set Matrix Zeroes](https://www.internhack.in/learn/dsa/problem/set-matrix-zeroes) (Medium)
70. [Smallest Greater Multiple Made of Two Digits](https://www.internhack.in/learn/dsa/problem/smallest-greater-multiple-made-of-two-digits) (Medium)
71. [Smallest String With Swaps](https://www.internhack.in/learn/dsa/problem/smallest-string-with-swaps) (Medium)
72. [Sort Colors](https://www.internhack.in/learn/dsa/problem/sort-colors) (Medium)
73. [Spiral Matrix](https://www.internhack.in/learn/dsa/problem/spiral-matrix) (Medium)
74. [Subarray Sum Equals K](https://www.internhack.in/learn/dsa/problem/subarray-sum-equals-k) (Medium)
75. [Subsets](https://www.internhack.in/learn/dsa/problem/subsets) (Medium)
76. [Swap Nodes in Pairs](https://www.internhack.in/learn/dsa/problem/swap-nodes-in-pairs) (Medium)
77. [Time Needed to Rearrange a Binary String](https://www.internhack.in/learn/dsa/problem/time-needed-to-rearrange-a-binary-string) (Medium)
78. [Top K Frequent Words](https://www.internhack.in/learn/dsa/problem/top-k-frequent-words) (Medium)
79. [Valid Sudoku](https://www.internhack.in/learn/dsa/problem/valid-sudoku) (Medium)
80. [Word Search](https://www.internhack.in/learn/dsa/problem/word-search) (Medium)
81. [Zigzag Conversion](https://www.internhack.in/learn/dsa/problem/zigzag-conversion) (Medium)
82. [Best Time to Buy and Sell Stock III](https://www.internhack.in/learn/dsa/problem/best-time-to-buy-and-sell-stock-iii) (Hard)
83. [Binary Tree Maximum Path Sum](https://www.internhack.in/learn/dsa/problem/binary-tree-maximum-path-sum) (Hard)
84. [Count Array Pairs Divisible by K](https://www.internhack.in/learn/dsa/problem/count-array-pairs-divisible-by-k) (Hard)
85. [Find Median from Data Stream](https://www.internhack.in/learn/dsa/problem/find-median-from-data-stream) (Hard)
86. [First Missing Positive](https://www.internhack.in/learn/dsa/problem/first-missing-positive) (Hard)
87. [LFU Cache](https://www.internhack.in/learn/dsa/problem/lfu-cache) (Hard)
88. [Maximum Frequency Score of a Subarray](https://www.internhack.in/learn/dsa/problem/maximum-frequency-score-of-a-subarray) (Hard)
89. [Maximum Profit in Job Scheduling](https://www.internhack.in/learn/dsa/problem/maximum-profit-in-job-scheduling) (Hard)
90. [Median of Two Sorted Arrays](https://www.internhack.in/learn/dsa/problem/median-of-two-sorted-arrays) (Hard)
91. [Minimum Edge Reversals So Every Node Is Reachable](https://www.internhack.in/learn/dsa/problem/minimum-edge-reversals-so-every-node-is-reachable) (Hard)
92. [Minimum Number of Removals to Make Mountain Array](https://www.internhack.in/learn/dsa/problem/minimum-number-of-removals-to-make-mountain-array) (Hard)
93. [Minimum Replacements to Sort the Array](https://www.internhack.in/learn/dsa/problem/minimum-replacements-to-sort-the-array) (Hard)
94. [Number of Valid Move Combinations On Chessboard](https://www.internhack.in/learn/dsa/problem/number-of-valid-move-combinations-on-chessboard) (Hard)
95. [Paint House III](https://www.internhack.in/learn/dsa/problem/paint-house-iii) (Hard)
96. [Reaching Points](https://www.internhack.in/learn/dsa/problem/reaching-points) (Hard)
97. [Serialize and Deserialize Binary Tree](https://www.internhack.in/learn/dsa/problem/serialize-and-deserialize-binary-tree) (Hard)
98. [Text Justification](https://www.internhack.in/learn/dsa/problem/text-justification) (Hard)
99. [Trapping Rain Water](https://www.internhack.in/learn/dsa/problem/trapping-rain-water) (Hard)
100. [Word Search II](https://www.internhack.in/learn/dsa/problem/word-search-ii) (Hard)

## Prepare for the rest of the Paypal process

- [Aptitude questions by company](https://www.internhack.in/learn/aptitude/companies)
- [Technical interview questions](https://www.internhack.in/learn/interview)
- [Free ATS resume check](https://www.internhack.in/ats-score/try), no signup

## Other companies

- [Google](https://www.internhack.in/learn/dsa/companies/google) (2217)
- [Amazon](https://www.internhack.in/learn/dsa/companies/amazon) (1938)
- [Meta](https://www.internhack.in/learn/dsa/companies/meta) (1387)
- [Microsoft](https://www.internhack.in/learn/dsa/companies/microsoft) (1352)
- [Bloomberg](https://www.internhack.in/learn/dsa/companies/bloomberg) (1173)
- [Tiktok](https://www.internhack.in/learn/dsa/companies/tiktok) (383)
- [Uber](https://www.internhack.in/learn/dsa/companies/uber) (381)
- [Apple](https://www.internhack.in/learn/dsa/companies/apple) (356)
- [Oracle](https://www.internhack.in/learn/dsa/companies/oracle) (340)
- [Goldman Sachs](https://www.internhack.in/learn/dsa/companies/goldman-sachs) (270)
- [Adobe](https://www.internhack.in/learn/dsa/companies/adobe) (227)
- [TCS](https://www.internhack.in/learn/dsa/companies/tcs) (217)
- [Salesforce](https://www.internhack.in/learn/dsa/companies/salesforce) (189)
- [Linkedin](https://www.internhack.in/learn/dsa/companies/linkedin) (180)
- [Zoho](https://www.internhack.in/learn/dsa/companies/zoho) (179)
- [IBM](https://www.internhack.in/learn/dsa/companies/ibm) (170)
- [Infosys](https://www.internhack.in/learn/dsa/companies/infosys) (158)
- [Walmart Labs](https://www.internhack.in/learn/dsa/companies/walmart-labs) (152)
- [Accenture](https://www.internhack.in/learn/dsa/companies/accenture) (144)
- [Nvidia](https://www.internhack.in/learn/dsa/companies/nvidia) (137)
- [Yandex](https://www.internhack.in/learn/dsa/companies/yandex) (134)
- [DE Shaw](https://www.internhack.in/learn/dsa/companies/de-shaw) (124)
- [Visa](https://www.internhack.in/learn/dsa/companies/visa) (124)
- [Flipkart](https://www.internhack.in/learn/dsa/companies/flipkart) (117)

## Related

- [Home](https://www.internhack.in/)
- [Learn](https://www.internhack.in/learn)
- [DSA by company](https://www.internhack.in/learn/dsa/companies)
