Phonepe logo PH
Verified Company Vault

Phonepe DSA Interview Questions

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

102 Total Questions
4 (4%) Easy Problems
60 (59%) Medium Problems
38 (37%) Hard Problems
🔥 Most Tested Topics:
Arrays (37)Core DSA (37)Strings (9)Trees (8)Dynamic Programming (8)
📂 Sourced Datasets:
Last 6 monthsAll questionsOlder than 6 months
Showing 102 of 102 displayed
IDProblemDifficultyTopicPatternAcceptanceFrequencyRecency
1423Maximum Points You Can Obtain from CardsMediumArraysSorting / Prefix / Scan57.7%100.0%6m
2517Maximum Tastiness of Candy BasketMediumArraysSorting / Prefix / Scan68.2%100.0%all
2543Check if Point Is ReachableHardCore DSAImplementation / Reasoning45.1%100.0%all
2043Simple Bank SystemMediumCore DSAImplementation / Reasoning69.7%100.0%all
1202Smallest String With SwapsMediumStringsHashing / Sliding Window60.6%100.0%all
2995Viewers Turned StreamersHardCore DSAImplementation / Reasoning42.9%100.0%all
3008Find Beautiful Indices in the Given Array IIHardArraysSorting / Prefix / Scan27.9%100.0%all
632Smallest Range Covering Elements from K ListsHardLinked ListTwo Pointers70.1%100.0%all
3405Count the Number of Arrays with K Matching Adjacent ElementsHardArraysSorting / Prefix / Scan58.2%100.0%all
3418Maximum Amount of Money Robot Can EarnMediumArraysSorting / Prefix / Scan47.8%100.0%all
3435Frequencies of Shortest SupersequencesHardCore DSAImplementation / Reasoning22.4%100.0%all
54Spiral MatrixMediumArraysSorting / Prefix / Scan56.8%87.5%6m
146LRU CacheMediumDesignData Structure Design47.4%87.5%6m
5Longest Palindromic SubstringMediumStrings; TreesHashing / Sliding Window; DFS / BFS37.8%87.5%all
42Trapping Rain WaterHardCore DSATwo Pointers67.4%87.5%all
815Bus RoutesHardCore DSAImplementation / Reasoning47.3%87.5%all
402Remove K DigitsMediumCore DSAImplementation / Reasoning36.9%87.5%all
947Most Stones Removed with Same Row or ColumnMediumCore DSAImplementation / Reasoning62.9%87.5%all
834Sum of Distances in TreeHardArrays; TreesSorting / Prefix / Scan; DFS / BFS65.6%87.5%all
1482Minimum Number of Days to Make m BouquetsMediumArraysSorting / Prefix / Scan56.6%87.5%all
1438Longest Continuous Subarray With Absolute Diff Less Than or Equal to LimitMediumArraysSorting / Prefix / Scan57.7%75.0%all
45Jump Game IIMediumGreedyGreedy42.9%75.0%all
198House RobberMediumDynamic ProgrammingState Transition53.2%75.0%all
1235Maximum Profit in Job SchedulingHardArraysSorting / Prefix / Scan54.7%75.0%all
880Decoded String at IndexMediumStrings; Dynamic ProgrammingHashing / Sliding Window; State Transition37.3%75.0%all
882Reachable Nodes In Subdivided GraphHardTrees; GraphsDFS / BFS; BFS / DFS / Topological Sort52.1%75.0%all
994Rotting OrangesMediumCore DSAImplementation / Reasoning58.7%75.0%all
378Kth Smallest Element in a Sorted MatrixMediumArrays; HeapSorting / Prefix / Scan; Priority Queue64.6%75.0%all
2948Make Lexicographically Smallest Array by Swapping ElementsMediumArrays; GraphsSorting / Prefix / Scan; BFS / DFS / Topological Sort60.3%75.0%all
473Matchsticks to SquareMediumCore DSAImplementation / Reasoning41.9%75.0%all
488Zuma GameHardCore DSAImplementation / Reasoning29.7%75.0%all
2929Distribute Candies Among Children IIMediumCore DSAImplementation / Reasoning55.6%75.0%all
2603Collect Coins in a TreeHardTrees; Dynamic ProgrammingDFS / BFS; State Transition40.1%75.0%all
135CandyHardCore DSAImplementation / Reasoning48.5%62.5%all
312Burst BalloonsHardCore DSAImplementation / Reasoning63.5%62.5%all
337House Robber IIIMediumDynamic ProgrammingState Transition55.9%62.5%all
875Koko Eating BananasMediumBinary SearchBinary Search50.0%62.5%all
406Queue Reconstruction by HeightMediumStack / QueueMonotonic Stack / Simulation74.7%62.5%all
1838Frequency of the Most Frequent ElementMediumCore DSAImplementation / Reasoning44.8%62.5%all
1590Make Sum Divisible by PMediumArraysSorting / Prefix / Scan42.6%62.5%all
221Maximal SquareMediumCore DSAImplementation / Reasoning50.3%62.5%all
3186Maximum Total Damage With Spell CastingMediumArraysSorting / Prefix / Scan45.1%62.5%all
659Split Array into Consecutive SubsequencesMediumArraysSorting / Prefix / Scan52.1%62.5%all
735Asteroid CollisionMediumCore DSAImplementation / Reasoning47.9%62.5%all
1383Maximum Performance of a TeamHardArraysSorting / Prefix / Scan47.8%62.5%all
1664Ways to Make a Fair ArrayMediumArraysSorting / Prefix / Scan66.9%62.5%all
49Group AnagramsMediumStringsHashing / Sliding Window72.6%62.5%all
399Evaluate DivisionMediumCore DSAImplementation / Reasoning64.2%62.5%all
2251Number of Flowers in Full BloomHardCore DSAImplementation / Reasoning57.9%62.5%all
851Loud and RichMediumCore DSAImplementation / Reasoning63.5%62.5%all
1657Determine if Two Strings Are CloseMediumStringsHashing / Sliding Window54.3%62.5%all
2858Minimum Edge Reversals So Every Node Is ReachableHardArrays; TreesSorting / Prefix / Scan; DFS / BFS59.5%62.5%all
1319Number of Operations to Make Network ConnectedMediumGraphsBFS / DFS / Topological Sort66.5%62.5%all
134Gas StationMediumGreedyGreedy48.0%62.5%all
1642Furthest Building You Can ReachMediumCore DSAImplementation / Reasoning50.9%62.5%all
153SumMediumArraysSorting / Prefix / Scan39.1%62.5%all
20Valid ParenthesesEasyStringsHashing / Sliding Window44.2%62.5%all
853Car FleetMediumCore DSAImplementation / Reasoning55.1%62.5%all
56Merge IntervalsMediumArraysSorting / Prefix / Scan51.8%50.0%all
75Sort ColorsMediumArraysSorting / Prefix / Scan69.6%50.0%all
121Best Time to Buy and Sell StockEasyCore DSAImplementation / Reasoning56.8%50.0%all
127Word LadderHardStringsHashing / Sliding Window45.6%50.0%all
721Accounts MergeMediumArraysSorting / Prefix / Scan61.3%50.0%all
410Split Array Largest SumHardArraysSorting / Prefix / Scan60.4%50.0%all
502IPOHardCore DSAImplementation / Reasoning53.5%50.0%all
639Decode Ways IIHardDynamic ProgrammingState Transition31.9%50.0%all
874Walking Robot SimulationMediumCore DSAImplementation / Reasoning64.6%50.0%all
1130Minimum Cost Tree From Leaf ValuesMediumArrays; TreesSorting / Prefix / Scan; DFS / BFS67.9%50.0%all
2968Apply Operations to Maximize Frequency ScoreHardCore DSAImplementation / Reasoning38.9%50.0%all
239Sliding Window MaximumHardArraysSorting / Prefix / Scan; Sliding Window48.8%50.0%all
652Find Duplicate SubtreesMediumArrays; TreesSorting / Prefix / Scan; DFS / BFS60.7%50.0%all
57Insert IntervalMediumArraysSorting / Prefix / Scan45.2%50.0%all
55Jump GameMediumGreedyGreedy40.9%50.0%all
41First Missing PositiveHardArraysSorting / Prefix / Scan42.9%50.0%all
475HeatersMediumCore DSAImplementation / Reasoning41.9%50.0%all
128Longest Consecutive SequenceMediumCore DSAImplementation / Reasoning47.1%50.0%all
1751Maximum Number of Events That Can Be Attended IIHardArraysSorting / Prefix / Scan63.5%50.0%all
53Maximum SubarrayMediumArraysSorting / Prefix / Scan53.3%50.0%all
2608Shortest Cycle in a GraphHardGraphs; Linked ListBFS / DFS / Topological Sort; Two Pointers39.7%50.0%all
2484Count Palindromic SubsequencesHardCore DSAImplementation / Reasoning41.2%50.0%all
3608Minimum Time for K Connected ComponentsMediumArrays; GraphsSorting / Prefix / Scan; BFS / DFS / Topological Sort45.4%50.0%all
2360Longest Cycle in a GraphHardGraphs; Linked ListBFS / DFS / Topological Sort; Two Pointers50.7%50.0%all
514Freedom TrailHardCore DSAImplementation / Reasoning59.4%50.0%all
523Continuous Subarray SumMediumArraysSorting / Prefix / Scan31.4%50.0%all
864Shortest Path to Get All KeysHardCore DSAImplementation / Reasoning54.6%50.0%all
546Remove BoxesHardCore DSAImplementation / Reasoning49.4%50.0%all
10Regular Expression MatchingHardCore DSAImplementation / Reasoning31.0%50.0%all
54201 MatrixMediumArraysSorting / Prefix / Scan53.9%50.0%all
2104Sum of Subarray RangesMediumArraysSorting / Prefix / Scan61.1%50.0%all
1035Uncrossed LinesMediumCore DSAImplementation / Reasoning65.3%50.0%all
322Coin ChangeMediumDynamic ProgrammingState Transition48.4%50.0%all
1Two SumEasyArraysSorting / Prefix / Scan; Two Pointers57.5%50.0%all
741Cherry PickupHardCore DSAImplementation / Reasoning39.5%50.0%all
329Longest Increasing Path in a MatrixHardArrays; Dynamic ProgrammingSorting / Prefix / Scan; State Transition56.6%50.0%all
17Letter Combinations of a Phone NumberMediumStrings; BacktrackingHashing / Sliding Window; Backtracking66.1%50.0%all
803Bricks Falling When HitHardCore DSAImplementation / Reasoning37.2%50.0%all
200Number of IslandsMediumGraphsBFS / DFS / Topological Sort64.4%50.0%all
2385Amount of Time for Binary Tree to Be InfectedMediumTreesDFS / BFS65.4%50.0%all
394Decode StringMediumStrings; Dynamic Programming; Stack / QueueHashing / Sliding Window; State Transition; Monotonic Stack / Simulation62.6%50.0%all
305Number of Islands IIHardGraphsBFS / DFS / Topological Sort40.6%50.0%all
14Longest Common PrefixEasyCore DSAImplementation / Reasoning47.6%50.0%all
862Shortest Subarray with Sum at Least KHardArraysSorting / Prefix / Scan32.8%50.0%all