P

PhonePe

93 questions tracked89 with solutions
🔍
Frequency scoreSorted highest → lowest frequency✓ Our Solution = we have a detailed walkthrough

Showing 93 of 93 questions

1
HardFrog Jump✓ Our Solution
100
ArrayDynamic Programming
LeetCode ↗47% acc.
2
HardBurst Balloons✓ Our Solution
94
ArrayDynamic Programming
LeetCode ↗61% acc.
3
MediumDecoded String at Index✓ Our Solution
91
StringStack
LeetCode ↗37% acc.
4
MediumMaximum Tastiness of Candy Basket✓ Our Solution
87
ArrayBinary SearchGreedySorting
LeetCode ↗66% acc.
5
MediumSimple Bank System✓ Our Solution
87
ArrayHash TableDesignSimulation
LeetCode ↗61% acc.
6
HardSmallest Range Covering Elements from K Lists✓ Our Solution
87
ArrayHash TableGreedySliding Window+2
LeetCode ↗70% acc.
7
HardViewers Turned Streamers
84
Database
LeetCode ↗43% acc.
8
HardFrequencies of Shortest Supersequences✓ Our Solution
84
ArrayStringBit ManipulationGraph+2
LeetCode ↗16% acc.
9
MediumSmallest String With Swaps✓ Our Solution
84
ArrayHash TableStringDepth-First Search+3
LeetCode ↗59% acc.
10
MediumMaximum Amount of Money Robot Can Earn✓ Our Solution
84
ArrayDynamic ProgrammingMatrix
LeetCode ↗29% acc.
11
HardCheck if Point Is Reachable✓ Our Solution
84
MathNumber Theory
LeetCode ↗43% acc.
12
HardCount the Number of Arrays with K Matching Adjacent Elements✓ Our Solution
84
MathCombinatorics
LeetCode ↗59% acc.
13
HardFind Beautiful Indices in the Given Array II✓ Our Solution
84
Two PointersStringBinary SearchRolling Hash+2
LeetCode ↗26% acc.
14
MediumRemove K Digits✓ Our Solution
79
StringStackGreedyMonotonic Stack
LeetCode ↗35% acc.
15
MediumMost Stones Removed with Same Row or Column✓ Our Solution
76
Hash TableDepth-First SearchUnion FindGraph
LeetCode ↗62% acc.
16
HardBus Routes✓ Our Solution
76
ArrayHash TableBreadth-First Search
LeetCode ↗47% acc.
17
HardTrapping Rain Water✓ Our Solution
72
ArrayTwo PointersDynamic ProgrammingStack+1
LeetCode ↗65% acc.
18
MediumLongest Palindromic Substring✓ Our Solution
72
Two PointersStringDynamic Programming
LeetCode ↗36% acc.
19
MediumHouse Robber II✓ Our Solution
67
ArrayDynamic Programming
LeetCode ↗44% acc.
20
MediumQueue Reconstruction by Height✓ Our Solution
67
ArrayBinary Indexed TreeSegment TreeSorting
LeetCode ↗74% acc.
21
HardSplit Array Largest Sum✓ Our Solution
67
ArrayBinary SearchDynamic ProgrammingGreedy+1
LeetCode ↗58% acc.
22
67
ArrayGreedy
LeetCode ↗47% acc.
23
MediumFrequency of the Most Frequent Element✓ Our Solution
67
ArrayBinary SearchGreedySliding Window+2
LeetCode ↗44% acc.
24
MediumHouse Robber✓ Our Solution
67
ArrayDynamic Programming
LeetCode ↗52% acc.
25
EasyBest Time to Buy and Sell Stock✓ Our Solution
67
ArrayDynamic Programming
LeetCode ↗55% acc.
26
MediumKth Smallest Element in a Sorted Matrix✓ Our Solution
67
ArrayBinary SearchSortingHeap (Priority Queue)+1
LeetCode ↗64% acc.
27
HardMaximum Profit in Job Scheduling✓ Our Solution
67
ArrayBinary SearchDynamic ProgrammingSorting
LeetCode ↗54% acc.
28
MediumAmount of Time for Binary Tree to Be Infected✓ Our Solution
62
Hash TableTreeDepth-First SearchBreadth-First Search+1
LeetCode ↗64% acc.
29
MediumLongest Continuous Subarray With Absolute Diff Less Than or Equal to Limit✓ Our Solution
62
ArrayQueueSliding WindowHeap (Priority Queue)+2
LeetCode ↗57% acc.
30
HardReachable Nodes In Subdivided Graph✓ Our Solution
62
GraphHeap (Priority Queue)Shortest Path
LeetCode ↗51% acc.
31
MediumKoko Eating Bananas✓ Our Solution
62
ArrayBinary Search
LeetCode ↗49% acc.
32
HardSum of Distances in Tree✓ Our Solution
62
Dynamic ProgrammingTreeDepth-First SearchGraph
LeetCode ↗65% acc.
33
MediumMake Lexicographically Smallest Array by Swapping Elements✓ Our Solution
62
ArrayUnion FindSorting
LeetCode ↗60% acc.
34
62
ArrayGreedySortingHeap (Priority Queue)
LeetCode ↗53% acc.
35
MediumJump Game II✓ Our Solution
62
ArrayDynamic ProgrammingGreedy
LeetCode ↗42% acc.
36
MediumHouse Robber III✓ Our Solution
55
Dynamic ProgrammingTreeDepth-First SearchBinary Tree
LeetCode ↗55% acc.
37
MediumDistribute Coins in Binary Tree✓ Our Solution
55
TreeDepth-First SearchBinary Tree
LeetCode ↗77% acc.
38
MediumSort Colors✓ Our Solution
55
ArrayTwo PointersSorting
LeetCode ↗68% acc.
39
MediumMerge Intervals✓ Our Solution
55
ArraySorting
LeetCode ↗49% acc.
40
MediumMaximal Square✓ Our Solution
55
ArrayDynamic ProgrammingMatrix
LeetCode ↗49% acc.
41
MediumSplit Array into Consecutive Subsequences✓ Our Solution
55
ArrayHash TableGreedyHeap (Priority Queue)
LeetCode ↗52% acc.
42
HardBest Time to Buy and Sell Stock III✓ Our Solution
55
ArrayDynamic Programming
LeetCode ↗51% acc.
43
HardWord Ladder✓ Our Solution
55
Hash TableStringBreadth-First Search
LeetCode ↗43% acc.
44
HardMinimum Cost to Cut a Stick✓ Our Solution
55
ArrayDynamic ProgrammingSorting
LeetCode ↗62% acc.
45
MediumRotting Oranges✓ Our Solution
55
ArrayBreadth-First SearchMatrix
LeetCode ↗57% acc.
46
MediumMatchsticks to Square✓ Our Solution
55
ArrayDynamic ProgrammingBacktrackingBit Manipulation+1
LeetCode ↗41% acc.
47
HardSliding Window Maximum✓ Our Solution
55
ArrayQueueSliding WindowHeap (Priority Queue)+1
LeetCode ↗48% acc.
48
MediumAccounts Merge✓ Our Solution
55
ArrayHash TableStringDepth-First Search+3
LeetCode ↗60% acc.
49
HardSwim in Rising Water✓ Our Solution
55
ArrayBinary SearchDepth-First SearchBreadth-First Search+3
LeetCode ↗63% acc.
50
HardBest Time to Buy and Sell Stock IV✓ Our Solution
45
ArrayDynamic Programming
LeetCode ↗47% acc.
51
MediumEvaluate Division✓ Our Solution
45
ArrayStringDepth-First SearchBreadth-First Search+3
LeetCode ↗63% acc.
52
MediumBinary Tree Level Order Traversal✓ Our Solution
45
TreeBreadth-First SearchBinary Tree
LeetCode ↗71% acc.
53
MediumGroup Anagrams✓ Our Solution
45
ArrayHash TableStringSorting
LeetCode ↗71% acc.
54
MediumLongest Consecutive Sequence✓ Our Solution
45
ArrayHash TableUnion Find
LeetCode ↗47% acc.
55
MediumLRU Cache✓ Our Solution
45
Hash TableLinked ListDesignDoubly-Linked List
LeetCode ↗45% acc.
56
MediumFind Duplicate Subtrees✓ Our Solution
45
Hash TableTreeDepth-First SearchBinary Tree
LeetCode ↗60% acc.
57
MediumWays to Make a Fair Array✓ Our Solution
45
ArrayPrefix Sum
LeetCode ↗64% acc.
58
HardFirst Missing Positive✓ Our Solution
45
ArrayHash Table
LeetCode ↗41% acc.
59
MediumHeaters✓ Our Solution
45
ArrayTwo PointersBinary SearchSorting
LeetCode ↗40% acc.
60
MediumSnakes and Ladders✓ Our Solution
45
ArrayBreadth-First SearchMatrix
LeetCode ↗48% acc.
61
MediumSum of Subarray Minimums✓ Our Solution
45
ArrayDynamic ProgrammingStackMonotonic Stack
LeetCode ↗38% acc.
62
MediumAsteroid Collision✓ Our Solution
45
ArrayStackSimulation
LeetCode ↗46% acc.
63
MediumGenerate Parentheses✓ Our Solution
45
StringDynamic ProgrammingBacktracking
LeetCode ↗77% acc.
64
MediumInsert Interval✓ Our Solution
45
Array
LeetCode ↗43% acc.
65
HardBinary Tree Cameras✓ Our Solution
45
Dynamic ProgrammingTreeDepth-First SearchBinary Tree
LeetCode ↗47% acc.
66
HardMaximum Performance of a Team✓ Our Solution
45
ArrayGreedySortingHeap (Priority Queue)
LeetCode ↗48% acc.
67
MediumJump Game✓ Our Solution
45
ArrayDynamic ProgrammingGreedy
LeetCode ↗39% acc.
68
HardPartition Array Into Two Arrays to Minimize Sum Difference✓ Our Solution
45
ArrayTwo PointersBinary SearchDynamic Programming+3
LeetCode ↗22% acc.
69
HardLargest Rectangle in Histogram✓ Our Solution
45
ArrayStackMonotonic Stack
LeetCode ↗47% acc.
70
HardDecode Ways II✓ Our Solution
45
StringDynamic Programming
LeetCode ↗31% acc.
71
HardFind Minimum Time to Finish All Jobs✓ Our Solution
45
ArrayDynamic ProgrammingBacktrackingBit Manipulation+1
LeetCode ↗44% acc.
72
HardAlien Dictionary
45
ArrayStringDepth-First SearchBreadth-First Search+2
LeetCode ↗37% acc.
73
MediumDaily Temperatures✓ Our Solution
45
ArrayStackMonotonic Stack
LeetCode ↗67% acc.
74
MediumCourse Schedule II✓ Our Solution
45
Depth-First SearchBreadth-First SearchGraphTopological Sort
LeetCode ↗53% acc.
75
MediumLongest Repeating Character Replacement✓ Our Solution
45
Hash TableStringSliding Window
LeetCode ↗57% acc.
76
MediumComplete Binary Tree Inserter✓ Our Solution
45
TreeBreadth-First SearchDesignBinary Tree
LeetCode ↗65% acc.
77
MediumString Compression✓ Our Solution
45
Two PointersString
LeetCode ↗58% acc.
78
MediumNumber of Islands✓ Our Solution
45
ArrayDepth-First SearchBreadth-First SearchUnion Find+1
LeetCode ↗62% acc.
79
MediumMagnetic Force Between Two Balls✓ Our Solution
45
ArrayBinary SearchSorting
LeetCode ↗71% acc.
80
HardNumber of Islands II
45
ArrayHash TableUnion Find
LeetCode ↗40% acc.
81
MediumCopy List with Random Pointer✓ Our Solution
45
Hash TableLinked List
LeetCode ↗61% acc.
82
MediumMaximum Total Damage With Spell Casting✓ Our Solution
45
ArrayHash TableTwo PointersBinary Search+3
LeetCode ↗28% acc.
83
MediumFind All Possible Recipes from Given Supplies✓ Our Solution
45
ArrayHash TableStringGraph+1
LeetCode ↗56% acc.
84
MediumGas Station✓ Our Solution
45
ArrayGreedy
LeetCode ↗46% acc.
85
MediumWalking Robot Simulation✓ Our Solution
45
ArrayHash TableSimulation
LeetCode ↗58% acc.
86
MediumMinimum Cost Tree From Leaf Values✓ Our Solution
45
ArrayDynamic ProgrammingStackGreedy+1
LeetCode ↗68% acc.
87
MediumBest Time to Buy and Sell Stock II✓ Our Solution
45
ArrayDynamic ProgrammingGreedy
LeetCode ↗70% acc.
88
HardApply Operations to Maximize Frequency Score✓ Our Solution
45
ArrayBinary SearchSliding WindowSorting+1
LeetCode ↗36% acc.
89
MediumMake Sum Divisible by P✓ Our Solution
45
ArrayHash TablePrefix Sum
LeetCode ↗39% acc.
90
MediumMinimum Height Trees✓ Our Solution
45
Depth-First SearchBreadth-First SearchGraphTopological Sort
LeetCode ↗42% acc.
91
MediumFind the Celebrity
45
Two PointersGraphInteractive
LeetCode ↗48% acc.
92
EasyLongest Common Prefix✓ Our Solution
45
StringTrie
LeetCode ↗45% acc.
93
HardNumber of Flowers in Full Bloom✓ Our Solution
45
ArrayHash TableBinary SearchSorting+2
LeetCode ↗57% acc.