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