JM

J.P. Morgan

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

Showing 79 of 79 questions

1
EasySort Integers by The Number of 1 Bits✓ Our Solution
100
ArrayBit ManipulationSortingCounting
LeetCode ↗79% acc.
2
HardReaching Points✓ Our Solution
97
Math
LeetCode ↗34% acc.
3
MediumLeast Number of Unique Integers after K Removals✓ Our Solution
93
ArrayHash TableGreedySorting+1
LeetCode ↗63% acc.
4
MediumMinimum Suffix Flips✓ Our Solution
91
StringGreedy
LeetCode ↗73% acc.
5
MediumRemove Colored Pieces if Both Neighbors are the Same Color✓ Our Solution
89
MathStringGreedyGame Theory
LeetCode ↗63% acc.
6
MediumBreak a Palindrome✓ Our Solution
86
StringGreedy
LeetCode ↗52% acc.
7
EasyMinimum Absolute Difference✓ Our Solution
83
ArraySorting
LeetCode ↗71% acc.
8
MediumNext Permutation✓ Our Solution
83
ArrayTwo Pointers
LeetCode ↗43% acc.
9
EasyCheck Whether Two Strings are Almost Equivalent✓ Our Solution
83
Hash TableStringCounting
LeetCode ↗64% acc.
10
MediumGroup Anagrams✓ Our Solution
78
ArrayHash TableStringSorting
LeetCode ↗71% acc.
11
EasyBest Time to Buy and Sell Stock✓ Our Solution
76
ArrayDynamic Programming
LeetCode ↗55% acc.
12
EasyDetermine Color of a Chessboard Square✓ Our Solution
74
MathString
LeetCode ↗79% acc.
13
MediumMinimum Swaps to Make Strings Equal✓ Our Solution
74
MathStringGreedy
LeetCode ↗65% acc.
14
HardNumbers With Repeated Digits✓ Our Solution
74
MathDynamic Programming
LeetCode ↗43% acc.
15
MediumMerge Intervals✓ Our Solution
72
ArraySorting
LeetCode ↗49% acc.
16
MediumSuspicious Bank Accounts
70
Database
LeetCode ↗45% acc.
17
EasyButton with Longest Push Time✓ Our Solution
70
Array
LeetCode ↗41% acc.
18
MediumDisplay Table of Food Orders in a Restaurant✓ Our Solution
70
ArrayHash TableStringSorting+1
LeetCode ↗76% acc.
19
EasyCheck if Number Has Equal Digit Count and Digit Value✓ Our Solution
70
Hash TableStringCounting
LeetCode ↗72% acc.
20
HardMaximum Number of Points From Grid Queries✓ Our Solution
70
ArrayTwo PointersBreadth-First SearchUnion Find+3
LeetCode ↗60% acc.
21
EasyValid Parentheses✓ Our Solution
70
StringStack
LeetCode ↗42% acc.
22
MediumLexicographically Smallest String After Applying Operations✓ Our Solution
70
StringDepth-First SearchBreadth-First SearchEnumeration
LeetCode ↗65% acc.
23
MediumRotate Image✓ Our Solution
70
ArrayMathMatrix
LeetCode ↗78% acc.
24
EasyLexicographically Smallest String After a Swap✓ Our Solution
70
StringGreedy
LeetCode ↗54% acc.
25
MediumReverse Odd Levels of Binary Tree✓ Our Solution
70
TreeDepth-First SearchBreadth-First SearchBinary Tree
LeetCode ↗87% acc.
26
EasyFind Resultant Array After Removing Anagrams✓ Our Solution
68
ArrayHash TableStringSorting
LeetCode ↗59% acc.
27
MediumLongest Palindromic Substring✓ Our Solution
66
Two PointersStringDynamic Programming
LeetCode ↗36% acc.
28
MediumCount Numbers with Unique Digits✓ Our Solution
63
MathDynamic ProgrammingBacktracking
LeetCode ↗54% acc.
29
EasyHappy Number✓ Our Solution
60
Hash TableMathTwo Pointers
LeetCode ↗58% acc.
30
MediumLongest Substring Without Repeating Characters✓ Our Solution
60
Hash TableStringSliding Window
LeetCode ↗37% acc.
31
EasyClimbing Stairs✓ Our Solution
56
MathDynamic ProgrammingMemoization
LeetCode ↗54% acc.
32
EasyMaximum Product of Two Elements in an Array✓ Our Solution
56
ArraySortingHeap (Priority Queue)
LeetCode ↗83% acc.
33
MediumMinimum Operations to Make All Array Elements Equal✓ Our Solution
51
ArrayBinary SearchSortingPrefix Sum
LeetCode ↗37% acc.
34
MediumSubarray Sum Equals K✓ Our Solution
51
ArrayHash TablePrefix Sum
LeetCode ↗45% acc.
35
EasyMaximum Units on a Truck✓ Our Solution
51
ArrayGreedySorting
LeetCode ↗74% acc.
36
EasyTwo Sum✓ Our Solution
51
ArrayHash Table
LeetCode ↗56% acc.
37
EasyFizz Buzz✓ Our Solution
51
MathStringSimulation
LeetCode ↗74% acc.
38
EasyIntersection of Two Arrays✓ Our Solution
51
ArrayHash TableTwo PointersBinary Search+1
LeetCode ↗76% acc.
39
MediumGenerate Parentheses✓ Our Solution
51
StringDynamic ProgrammingBacktracking
LeetCode ↗77% acc.
40
MediumMaximum Subarray✓ Our Solution
51
ArrayDivide and ConquerDynamic Programming
LeetCode ↗52% acc.
41
MediumBest Time to Buy and Sell Stock II✓ Our Solution
51
ArrayDynamic ProgrammingGreedy
LeetCode ↗70% acc.
42
MediumRearrange Array to Maximize Prefix Score✓ Our Solution
51
ArrayGreedySortingPrefix Sum
LeetCode ↗42% acc.
43
MediumCoin Change✓ Our Solution
45
ArrayDynamic ProgrammingBreadth-First Search
LeetCode ↗46% acc.
44
MediumNon-overlapping Intervals✓ Our Solution
45
ArrayDynamic ProgrammingGreedySorting
LeetCode ↗56% acc.
45
EasyFibonacci Number✓ Our Solution
45
MathDynamic ProgrammingRecursionMemoization
LeetCode ↗73% acc.
46
MediumMinimum Cost to Connect Sticks
45
ArrayGreedyHeap (Priority Queue)
LeetCode ↗71% acc.
47
EasyPascal's Triangle✓ Our Solution
45
ArrayDynamic Programming
LeetCode ↗77% acc.
48
HardMinimum Cost to Make Array Equal✓ Our Solution
45
ArrayBinary SearchGreedySorting+1
LeetCode ↗46% acc.
49
MediumLRU Cache✓ Our Solution
45
Hash TableLinked ListDesignDoubly-Linked List
LeetCode ↗45% acc.
50
MediumDaily Temperatures✓ Our Solution
45
ArrayStackMonotonic Stack
LeetCode ↗67% acc.
51
MediumBinary Tree Right Side View✓ Our Solution
45
TreeDepth-First SearchBreadth-First SearchBinary Tree
LeetCode ↗67% acc.
52
EasyReverse Linked List✓ Our Solution
45
Linked ListRecursion
LeetCode ↗79% acc.
53
MediumTwo Sum II - Input Array Is Sorted✓ Our Solution
36
ArrayTwo PointersBinary Search
LeetCode ↗63% acc.
54
MediumSet Matrix Zeroes✓ Our Solution
36
ArrayHash TableMatrix
LeetCode ↗61% acc.
55
MediumFind Occurrences of an Element in an Array✓ Our Solution
36
ArrayHash Table
LeetCode ↗73% acc.
56
MediumLetter Combinations of a Phone Number✓ Our Solution
36
Hash TableStringBacktracking
LeetCode ↗64% acc.
57
EasyPalindrome Number✓ Our Solution
36
Math
LeetCode ↗59% acc.
58
MediumKth Largest Element in an Array✓ Our Solution
36
ArrayDivide and ConquerSortingHeap (Priority Queue)+1
LeetCode ↗68% acc.
59
MediumTop K Frequent Elements✓ Our Solution
36
ArrayHash TableDivide and ConquerSorting+4
LeetCode ↗65% acc.
60
EasyAverage Time of Process per Machine✓ Our Solution
36
Database
LeetCode ↗69% acc.
61
MediumContainer With Most Water✓ Our Solution
36
ArrayTwo PointersGreedy
LeetCode ↗58% acc.
62
MediumPermutations✓ Our Solution
36
ArrayBacktracking
LeetCode ↗81% acc.
63
MediumShuffle an Array✓ Our Solution
36
ArrayMathDesignRandomized
LeetCode ↗59% acc.
64
EasyCount Binary Substrings✓ Our Solution
36
Two PointersString
LeetCode ↗66% acc.
65
MediumCount Strictly Increasing Subarrays
36
ArrayMathDynamic Programming
LeetCode ↗71% acc.
66
MediumOpen the Lock✓ Our Solution
36
ArrayHash TableStringBreadth-First Search
LeetCode ↗61% acc.
67
EasyMinimum String Length After Removing Substrings✓ Our Solution
36
StringStackSimulation
LeetCode ↗77% acc.
68
HardCherry Pickup✓ Our Solution
36
ArrayDynamic ProgrammingMatrix
LeetCode ↗38% acc.
69
EasyDegree of an Array✓ Our Solution
36
ArrayHash Table
LeetCode ↗57% acc.
70
MediumMinimum Insertions to Balance a Parentheses String✓ Our Solution
36
StringStackGreedy
LeetCode ↗53% acc.
71
MediumSearch Suggestions System✓ Our Solution
36
ArrayStringBinary SearchTrie+2
LeetCode ↗65% acc.
72
MediumFind the Duplicate Number✓ Our Solution
36
ArrayTwo PointersBinary SearchBit Manipulation
LeetCode ↗63% acc.
73
EasyUgly Number✓ Our Solution
36
Math
LeetCode ↗42% acc.
74
EasyContains Duplicate✓ Our Solution
36
ArrayHash TableSorting
LeetCode ↗63% acc.
75
MediumSum of Subarray Ranges✓ Our Solution
36
ArrayStackMonotonic Stack
LeetCode ↗60% acc.
76
MediumDecode Ways✓ Our Solution
36
StringDynamic Programming
LeetCode ↗37% acc.
77
MediumCombination Sum✓ Our Solution
36
ArrayBacktracking
LeetCode ↗75% acc.
78
MediumInteger to Roman✓ Our Solution
36
Hash TableMathString
LeetCode ↗69% acc.
79
MediumSpiral Matrix✓ Our Solution
36
ArrayMatrixSimulation
LeetCode ↗54% acc.