# Phonepe Coding Interview Questions

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

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

102 DSA problems tagged as asked in Phonepe coding interviews and online assessments. Below are the first 100 of 102: 3 easy, 61 medium and 36 hard. Start with the easy ones, then move to medium. Practise free on InternHack and track your progress.

## Phonepe DSA problems, easiest first

1. [Best Time to Buy and Sell Stock](https://www.internhack.in/learn/dsa/problem/best-time-to-buy-and-sell-stock) (Easy)
2. [Two Sum](https://www.internhack.in/learn/dsa/problem/two-sum) (Easy)
3. [Valid Parentheses](https://www.internhack.in/learn/dsa/problem/valid-parentheses) (Easy)
4. [01 Matrix](https://www.internhack.in/learn/dsa/problem/01-matrix) (Medium)
5. [3Sum](https://www.internhack.in/learn/dsa/problem/3sum) (Medium)
6. [Accounts Merge](https://www.internhack.in/learn/dsa/problem/accounts-merge) (Medium)
7. [Asteroid Collision](https://www.internhack.in/learn/dsa/problem/asteroid-collision) (Medium)
8. [Car Fleet](https://www.internhack.in/learn/dsa/problem/car-fleet) (Medium)
9. [Coin Change](https://www.internhack.in/learn/dsa/problem/coin-change) (Medium)
10. [Complete Binary Tree Inserter](https://www.internhack.in/learn/dsa/problem/complete-binary-tree-inserter) (Medium)
11. [Continuous Subarray Sum](https://www.internhack.in/learn/dsa/problem/continuous-subarray-sum) (Medium)
12. [Copy List with Random Pointer](https://www.internhack.in/learn/dsa/problem/copy-list-with-random-pointer) (Medium)
13. [Decoded String at Index](https://www.internhack.in/learn/dsa/problem/decoded-string-at-index) (Medium)
14. [Determine if Two Strings Are Close](https://www.internhack.in/learn/dsa/problem/determine-if-two-strings-are-close) (Medium)
15. [Distribute Candies Among Children II](https://www.internhack.in/learn/dsa/problem/distribute-candies-among-children-ii) (Medium)
16. [Evaluate Division](https://www.internhack.in/learn/dsa/problem/evaluate-division) (Medium)
17. [Find All Possible Recipes from Given Supplies](https://www.internhack.in/learn/dsa/problem/find-all-possible-recipes-from-given-supplies) (Medium)
18. [Find Duplicate Subtrees](https://www.internhack.in/learn/dsa/problem/find-duplicate-subtrees) (Medium)
19. [Find the Celebrity](https://www.internhack.in/learn/dsa/problem/find-the-celebrity) (Medium)
20. [Frequency of the Most Frequent Element](https://www.internhack.in/learn/dsa/problem/frequency-of-the-most-frequent-element) (Medium)
21. [Furthest Building You Can Reach](https://www.internhack.in/learn/dsa/problem/furthest-building-you-can-reach) (Medium)
22. [Gas Station](https://www.internhack.in/learn/dsa/problem/gas-station) (Medium)
23. [Generate Parentheses](https://www.internhack.in/learn/dsa/problem/generate-parentheses) (Medium)
24. [Group Anagrams](https://www.internhack.in/learn/dsa/problem/group-anagrams) (Medium)
25. [Heaters](https://www.internhack.in/learn/dsa/problem/heaters) (Medium)
26. [House Robber](https://www.internhack.in/learn/dsa/problem/house-robber) (Medium)
27. [House Robber III](https://www.internhack.in/learn/dsa/problem/house-robber-iii) (Medium)
28. [Insert Interval](https://www.internhack.in/learn/dsa/problem/insert-interval) (Medium)
29. [Jump Game](https://www.internhack.in/learn/dsa/problem/jump-game) (Medium)
30. [Jump Game II](https://www.internhack.in/learn/dsa/problem/jump-game-ii) (Medium)
31. [Kth Smallest Element in a Sorted Matrix](https://www.internhack.in/learn/dsa/problem/kth-smallest-element-in-a-sorted-matrix) (Medium)
32. [Letter Combinations of a Phone Number](https://www.internhack.in/learn/dsa/problem/letter-combinations-of-a-phone-number) (Medium)
33. [Longest Consecutive Sequence](https://www.internhack.in/learn/dsa/problem/longest-consecutive-sequence) (Medium)
34. [Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit](https://www.internhack.in/learn/dsa/problem/longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit) (Medium)
35. [Longest Palindromic Substring](https://www.internhack.in/learn/dsa/problem/longest-palindromic-substring) (Medium)
36. [Loud and Rich](https://www.internhack.in/learn/dsa/problem/loud-and-rich) (Medium)
37. [LRU Cache](https://www.internhack.in/learn/dsa/problem/lru-cache) (Medium)
38. [Make Lexicographically Smallest Array by Swapping Elements](https://www.internhack.in/learn/dsa/problem/make-lexicographically-smallest-array-by-swapping-elements) (Medium)
39. [Make Sum Divisible by P](https://www.internhack.in/learn/dsa/problem/make-sum-divisible-by-p) (Medium)
40. [Matchsticks to Square](https://www.internhack.in/learn/dsa/problem/matchsticks-to-square) (Medium)
41. [Maximal Square](https://www.internhack.in/learn/dsa/problem/maximal-square) (Medium)
42. [Maximum Amount of Money Robot Can Earn](https://www.internhack.in/learn/dsa/problem/maximum-amount-of-money-robot-can-earn) (Medium)
43. [Maximum Subarray](https://www.internhack.in/learn/dsa/problem/maximum-subarray) (Medium)
44. [Maximum Tastiness of Candy Basket](https://www.internhack.in/learn/dsa/problem/maximum-tastiness-of-candy-basket) (Medium)
45. [Maximum Total Damage With Spell Casting](https://www.internhack.in/learn/dsa/problem/maximum-total-damage-with-spell-casting) (Medium)
46. [Merge Intervals](https://www.internhack.in/learn/dsa/problem/merge-intervals) (Medium)
47. [Minimum Cost Tree From Leaf Values](https://www.internhack.in/learn/dsa/problem/minimum-cost-tree-from-leaf-values) (Medium)
48. [Minimum Number of Days to Make m Bouquets](https://www.internhack.in/learn/dsa/problem/minimum-number-of-days-to-make-m-bouquets) (Medium)
49. [Minimum Time for K Connected Components](https://www.internhack.in/learn/dsa/problem/minimum-time-for-k-connected-components) (Medium)
50. [Most Stones Removed with Same Row or Column](https://www.internhack.in/learn/dsa/problem/most-stones-removed-with-same-row-or-column) (Medium)
51. [Number of Islands](https://www.internhack.in/learn/dsa/problem/number-of-islands) (Medium)
52. [Number of Operations to Make Network Connected](https://www.internhack.in/learn/dsa/problem/number-of-operations-to-make-network-connected) (Medium)
53. [Queue Reconstruction by Height](https://www.internhack.in/learn/dsa/problem/queue-reconstruction-by-height) (Medium)
54. [Remove K Digits](https://www.internhack.in/learn/dsa/problem/remove-k-digits) (Medium)
55. [Rotting Oranges](https://www.internhack.in/learn/dsa/problem/rotting-oranges) (Medium)
56. [Simple Bank System](https://www.internhack.in/learn/dsa/problem/simple-bank-system) (Medium)
57. [Smallest String With Swaps](https://www.internhack.in/learn/dsa/problem/smallest-string-with-swaps) (Medium)
58. [Sort Colors](https://www.internhack.in/learn/dsa/problem/sort-colors) (Medium)
59. [Spiral Matrix](https://www.internhack.in/learn/dsa/problem/spiral-matrix) (Medium)
60. [Split Array into Consecutive Subsequences](https://www.internhack.in/learn/dsa/problem/split-array-into-consecutive-subsequences) (Medium)
61. [Sum of Subarray Ranges](https://www.internhack.in/learn/dsa/problem/sum-of-subarray-ranges) (Medium)
62. [Task Scheduler](https://www.internhack.in/learn/dsa/problem/task-scheduler) (Medium)
63. [Uncrossed Lines](https://www.internhack.in/learn/dsa/problem/uncrossed-lines) (Medium)
64. [Ways to Make a Fair Array](https://www.internhack.in/learn/dsa/problem/ways-to-make-a-fair-array) (Medium)
65. [Apply Operations to Maximize Frequency Score](https://www.internhack.in/learn/dsa/problem/apply-operations-to-maximize-frequency-score) (Hard)
66. [Bricks Falling When Hit](https://www.internhack.in/learn/dsa/problem/bricks-falling-when-hit) (Hard)
67. [Burst Balloons](https://www.internhack.in/learn/dsa/problem/burst-balloons) (Hard)
68. [Bus Routes](https://www.internhack.in/learn/dsa/problem/bus-routes) (Hard)
69. [Candy](https://www.internhack.in/learn/dsa/problem/candy) (Hard)
70. [Check if Point Is Reachable](https://www.internhack.in/learn/dsa/problem/check-if-point-is-reachable) (Hard)
71. [Cherry Pickup](https://www.internhack.in/learn/dsa/problem/cherry-pickup) (Hard)
72. [Collect Coins in a Tree](https://www.internhack.in/learn/dsa/problem/collect-coins-in-a-tree) (Hard)
73. [Count Palindromic Subsequences](https://www.internhack.in/learn/dsa/problem/count-palindromic-subsequences) (Hard)
74. [Count the Number of Arrays with K Matching Adjacent Elements](https://www.internhack.in/learn/dsa/problem/count-the-number-of-arrays-with-k-matching-adjacent-elements) (Hard)
75. [Decode Ways II](https://www.internhack.in/learn/dsa/problem/decode-ways-ii) (Hard)
76. [Find Beautiful Indices in the Given Array II](https://www.internhack.in/learn/dsa/problem/find-beautiful-indices-in-the-given-array-ii) (Hard)
77. [First Missing Positive](https://www.internhack.in/learn/dsa/problem/first-missing-positive) (Hard)
78. [Freedom Trail](https://www.internhack.in/learn/dsa/problem/freedom-trail) (Hard)
79. [Frequencies of Shortest Supersequences](https://www.internhack.in/learn/dsa/problem/frequencies-of-shortest-supersequences) (Hard)
80. [IPO](https://www.internhack.in/learn/dsa/problem/ipo) (Hard)
81. [Longest Cycle in a Graph](https://www.internhack.in/learn/dsa/problem/longest-cycle-in-a-graph) (Hard)
82. [Longest Increasing Path in a Matrix](https://www.internhack.in/learn/dsa/problem/longest-increasing-path-in-a-matrix) (Hard)
83. [Maximum Number of Events That Can Be Attended II](https://www.internhack.in/learn/dsa/problem/maximum-number-of-events-that-can-be-attended-ii) (Hard)
84. [Maximum Performance of a Team](https://www.internhack.in/learn/dsa/problem/maximum-performance-of-a-team) (Hard)
85. [Maximum Profit in Job Scheduling](https://www.internhack.in/learn/dsa/problem/maximum-profit-in-job-scheduling) (Hard)
86. [Minimum Edge Reversals So Every Node Is Reachable](https://www.internhack.in/learn/dsa/problem/minimum-edge-reversals-so-every-node-is-reachable) (Hard)
87. [Number of Flowers in Full Bloom](https://www.internhack.in/learn/dsa/problem/number-of-flowers-in-full-bloom) (Hard)
88. [Reachable Nodes In Subdivided Graph](https://www.internhack.in/learn/dsa/problem/reachable-nodes-in-subdivided-graph) (Hard)
89. [Regular Expression Matching](https://www.internhack.in/learn/dsa/problem/regular-expression-matching) (Hard)
90. [Remove Boxes](https://www.internhack.in/learn/dsa/problem/remove-boxes) (Hard)
91. [Shortest Cycle in a Graph](https://www.internhack.in/learn/dsa/problem/shortest-cycle-in-a-graph) (Hard)
92. [Shortest Path to Get All Keys](https://www.internhack.in/learn/dsa/problem/shortest-path-to-get-all-keys) (Hard)
93. [Sliding Window Maximum](https://www.internhack.in/learn/dsa/problem/sliding-window-maximum) (Hard)
94. [Smallest Range Covering Elements from K Lists](https://www.internhack.in/learn/dsa/problem/smallest-range-covering-elements-from-k-lists) (Hard)
95. [Split Array Largest Sum](https://www.internhack.in/learn/dsa/problem/split-array-largest-sum) (Hard)
96. [Sum of Distances in Tree](https://www.internhack.in/learn/dsa/problem/sum-of-distances-in-tree) (Hard)
97. [Trapping Rain Water](https://www.internhack.in/learn/dsa/problem/trapping-rain-water) (Hard)
98. [Viewers Turned Streamers](https://www.internhack.in/learn/dsa/problem/viewers-turned-streamers) (Hard)
99. [Word Ladder](https://www.internhack.in/learn/dsa/problem/word-ladder) (Hard)
100. [Zuma Game](https://www.internhack.in/learn/dsa/problem/zuma-game) (Hard)

## Prepare for the rest of the Phonepe 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)
