C

Citadel

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

Showing 100 of 100 questions

1
MediumLongest Non-decreasing Subarray From Two Arrays✓ Our Solution
100
ArrayDynamic Programming
LeetCode ↗30% acc.
2
HardBinary Tree Maximum Path Sum✓ Our Solution
99
Dynamic ProgrammingTreeDepth-First SearchBinary Tree
LeetCode ↗41% acc.
3
MediumDelete and Earn✓ Our Solution
93
ArrayHash TableDynamic Programming
LeetCode ↗57% acc.
4
MediumMinimum Knight Moves
93
Breadth-First Search
LeetCode ↗41% acc.
5
MediumPalindromic Substrings✓ Our Solution
87
Two PointersStringDynamic Programming
LeetCode ↗72% acc.
6
HardSliding Window Maximum✓ Our Solution
85
ArrayQueueSliding WindowHeap (Priority Queue)+1
LeetCode ↗48% acc.
7
HardCount Palindromic Subsequences✓ Our Solution
81
StringDynamic Programming
LeetCode ↗39% acc.
8
MediumMinimum Equal Sum of Two Arrays After Replacing Zeros✓ Our Solution
80
ArrayGreedy
LeetCode ↗50% acc.
9
HardLFU Cache✓ Our Solution
80
Hash TableLinked ListDesignDoubly-Linked List
LeetCode ↗47% acc.
10
HardMinimum Operations to Make Numbers Non-positive
78
ArrayBinary Search
LeetCode ↗42% acc.
11
MediumNumber of Good Binary Strings
76
Dynamic Programming
LeetCode ↗52% acc.
12
MediumMaximum Total Damage With Spell Casting✓ Our Solution
76
ArrayHash TableTwo PointersBinary Search+3
LeetCode ↗28% acc.
13
MediumMaximum Length of Repeated Subarray✓ Our Solution
74
ArrayBinary SearchDynamic ProgrammingSliding Window+2
LeetCode ↗51% acc.
14
MediumLRU Cache✓ Our Solution
74
Hash TableLinked ListDesignDoubly-Linked List
LeetCode ↗45% acc.
15
HardMinimum Costs Using the Train Line
74
ArrayDynamic Programming
LeetCode ↗78% acc.
16
HardBest Position for a Service Centre✓ Our Solution
74
ArrayMathGeometryRandomized
LeetCode ↗35% acc.
17
MediumEvaluate Division✓ Our Solution
72
ArrayStringDepth-First SearchBreadth-First Search+3
LeetCode ↗63% acc.
18
MediumFirst Completely Painted Row or Column✓ Our Solution
72
ArrayHash TableMatrix
LeetCode ↗64% acc.
19
MediumLongest String Chain✓ Our Solution
70
ArrayHash TableTwo PointersString+2
LeetCode ↗62% acc.
20
MediumMerge Intervals✓ Our Solution
70
ArraySorting
LeetCode ↗49% acc.
21
EasyBest Time to Buy and Sell Stock✓ Our Solution
67
ArrayDynamic Programming
LeetCode ↗55% acc.
22
HardSerialize and Deserialize Binary Tree✓ Our Solution
67
StringTreeDepth-First SearchBreadth-First Search+2
LeetCode ↗59% acc.
23
MediumFind the Duplicate Number✓ Our Solution
67
ArrayTwo PointersBinary SearchBit Manipulation
LeetCode ↗63% acc.
24
MediumEvaluate Reverse Polish Notation✓ Our Solution
65
ArrayMathStack
LeetCode ↗55% acc.
25
MediumInsert Delete GetRandom O(1)✓ Our Solution
65
ArrayHash TableMathDesign+1
LeetCode ↗55% acc.
26
HardSudoku Solver✓ Our Solution
61
ArrayHash TableBacktrackingMatrix
LeetCode ↗64% acc.
27
MediumLength of Longest Subarray With at Most K Frequency✓ Our Solution
61
ArrayHash TableSliding Window
LeetCode ↗56% acc.
28
HardParallel Courses III✓ Our Solution
61
ArrayDynamic ProgrammingGraphTopological Sort
LeetCode ↗67% acc.
29
MediumNumber of Islands✓ Our Solution
61
ArrayDepth-First SearchBreadth-First SearchUnion Find+1
LeetCode ↗62% acc.
30
HardCouples Holding Hands✓ Our Solution
57
GreedyDepth-First SearchBreadth-First SearchUnion Find+1
LeetCode ↗58% acc.
31
HardFind Median from Data Stream✓ Our Solution
57
Two PointersDesignSortingHeap (Priority Queue)+1
LeetCode ↗53% acc.
32
MediumGroup Anagrams✓ Our Solution
57
ArrayHash TableStringSorting
LeetCode ↗71% acc.
33
MediumValidate Binary Search Tree✓ Our Solution
57
TreeDepth-First SearchBinary Search TreeBinary Tree
LeetCode ↗34% acc.
34
MediumMeeting Scheduler
57
ArrayTwo PointersSorting
LeetCode ↗55% acc.
35
HardEmployee Free Time
57
ArrayLine SweepSortingHeap (Priority Queue)
LeetCode ↗73% acc.
36
HardMerge k Sorted Lists✓ Our Solution
57
Linked ListDivide and ConquerHeap (Priority Queue)Merge Sort
LeetCode ↗57% acc.
37
MediumPermutations✓ Our Solution
57
ArrayBacktracking
LeetCode ↗81% acc.
38
HardRobot Room Cleaner
57
BacktrackingInteractive
LeetCode ↗78% acc.
39
MediumBinary Tree Zigzag Level Order Traversal✓ Our Solution
52
TreeBreadth-First SearchBinary Tree
LeetCode ↗62% acc.
40
HardDesign Search Autocomplete System
52
StringDepth-First SearchDesignTrie+3
LeetCode ↗49% acc.
41
HardN-Queens✓ Our Solution
52
ArrayBacktracking
LeetCode ↗73% acc.
42
EasyFizz Buzz✓ Our Solution
52
MathStringSimulation
LeetCode ↗74% acc.
43
MediumBest Time to Buy and Sell Stock II✓ Our Solution
52
ArrayDynamic ProgrammingGreedy
LeetCode ↗70% acc.
44
HardRegular Expression Matching✓ Our Solution
52
StringDynamic ProgrammingRecursion
LeetCode ↗29% acc.
45
HardBest Time to Buy and Sell Stock III✓ Our Solution
52
ArrayDynamic Programming
LeetCode ↗51% acc.
46
MediumSearch Suggestions System✓ Our Solution
52
ArrayStringBinary SearchTrie+2
LeetCode ↗65% acc.
47
MediumCombination Sum✓ Our Solution
52
ArrayBacktracking
LeetCode ↗75% acc.
48
MediumDesign Circular Queue✓ Our Solution
52
ArrayLinked ListDesignQueue
LeetCode ↗53% acc.
49
HardTrapping Rain Water✓ Our Solution
52
ArrayTwo PointersDynamic ProgrammingStack+1
LeetCode ↗65% acc.
50
MediumWord Search✓ Our Solution
46
ArrayStringBacktrackingDepth-First Search+1
LeetCode ↗45% acc.
51
HardDesign Excel Sum Formula
46
ArrayHash TableStringGraph+3
LeetCode ↗43% acc.
52
EasyClimbing Stairs✓ Our Solution
46
MathDynamic ProgrammingMemoization
LeetCode ↗54% acc.
53
MediumLetter Combinations of a Phone Number✓ Our Solution
46
Hash TableStringBacktracking
LeetCode ↗64% acc.
54
EasySqrt(x)✓ Our Solution
46
MathBinary Search
LeetCode ↗40% acc.
55
MediumImplement Trie (Prefix Tree)✓ Our Solution
46
Hash TableStringDesignTrie
LeetCode ↗68% acc.
56
EasyMoving Average from Data Stream
46
ArrayDesignQueueData Stream
LeetCode ↗80% acc.
57
HardSort Items by Groups Respecting Dependencies✓ Our Solution
46
Depth-First SearchBreadth-First SearchGraphTopological Sort
LeetCode ↗66% acc.
58
MediumDesign Front Middle Back Queue✓ Our Solution
46
ArrayLinked ListDesignQueue+1
LeetCode ↗56% acc.
59
HardMedian of Two Sorted Arrays✓ Our Solution
46
ArrayBinary SearchDivide and Conquer
LeetCode ↗44% acc.
60
HardFind Servers That Handled Most Number of Requests✓ Our Solution
46
ArrayGreedyHeap (Priority Queue)Ordered Set
LeetCode ↗44% acc.
61
HardLongest Increasing Path in a Matrix✓ Our Solution
46
ArrayDynamic ProgrammingDepth-First SearchBreadth-First Search+4
LeetCode ↗55% acc.
62
MediumHouse Robber✓ Our Solution
46
ArrayDynamic Programming
LeetCode ↗52% acc.
63
MediumMaximal Square✓ Our Solution
46
ArrayDynamic ProgrammingMatrix
LeetCode ↗49% acc.
64
46
ArrayTwo PointersSorting
LeetCode ↗37% acc.
65
MediumPerfect Squares✓ Our Solution
46
MathDynamic ProgrammingBreadth-First Search
LeetCode ↗56% acc.
66
MediumMinimum Height Trees✓ Our Solution
46
Depth-First SearchBreadth-First SearchGraphTopological Sort
LeetCode ↗42% acc.
67
HardAlien Dictionary
46
ArrayStringDepth-First SearchBreadth-First Search+2
LeetCode ↗37% acc.
68
MediumCount Ways To Build Good Strings✓ Our Solution
46
Dynamic Programming
LeetCode ↗59% acc.
69
HardTransform to Chessboard✓ Our Solution
46
ArrayMathBit ManipulationMatrix
LeetCode ↗51% acc.
70
MediumBest Time to Buy and Sell Stock with Transaction Fee✓ Our Solution
37
ArrayDynamic ProgrammingGreedy
LeetCode ↗71% acc.
71
MediumOpen the Lock✓ Our Solution
37
ArrayHash TableStringBreadth-First Search
LeetCode ↗61% acc.
72
MediumKoko Eating Bananas✓ Our Solution
37
ArrayBinary Search
LeetCode ↗49% acc.
73
MediumPopulating Next Right Pointers in Each Node II✓ Our Solution
37
Linked ListTreeDepth-First SearchBreadth-First Search+1
LeetCode ↗56% acc.
74
HardMax Points on a Line✓ Our Solution
37
ArrayHash TableMathGeometry
LeetCode ↗29% acc.
75
MediumInteger to Roman✓ Our Solution
37
Hash TableMathString
LeetCode ↗69% acc.
76
MediumPermutations II✓ Our Solution
37
ArrayBacktrackingSorting
LeetCode ↗62% acc.
77
MediumPow(x, n)✓ Our Solution
37
MathRecursion
LeetCode ↗37% acc.
78
MediumSimplify Path✓ Our Solution
37
StringStack
LeetCode ↗48% acc.
79
MediumContainer With Most Water✓ Our Solution
37
ArrayTwo PointersGreedy
LeetCode ↗58% acc.
80
MediumRotting Oranges✓ Our Solution
37
ArrayBreadth-First SearchMatrix
LeetCode ↗57% acc.
81
MediumLongest Increasing Subsequence✓ Our Solution
37
ArrayBinary SearchDynamic Programming
LeetCode ↗58% acc.
82
HardRank Transform of a Matrix✓ Our Solution
37
ArrayUnion FindGraphTopological Sort+2
LeetCode ↗41% acc.
83
MediumPaint House
37
ArrayDynamic Programming
LeetCode ↗64% acc.
84
MediumSubarray Sums Divisible by K✓ Our Solution
37
ArrayHash TablePrefix Sum
LeetCode ↗56% acc.
85
MediumSearch a 2D Matrix II✓ Our Solution
37
ArrayBinary SearchDivide and ConquerMatrix
LeetCode ↗55% acc.
86
HardBest Time to Buy and Sell Stock IV✓ Our Solution
37
ArrayDynamic Programming
LeetCode ↗47% acc.
87
HardInsert Delete GetRandom O(1) - Duplicates allowed✓ Our Solution
37
ArrayHash TableMathDesign+1
LeetCode ↗36% acc.
88
HardWord Ladder II✓ Our Solution
37
Hash TableStringBacktrackingBreadth-First Search
LeetCode ↗27% acc.
89
HardBus Routes✓ Our Solution
37
ArrayHash TableBreadth-First Search
LeetCode ↗47% acc.
90
MediumCourse Schedule✓ Our Solution
37
Depth-First SearchBreadth-First SearchGraphTopological Sort
LeetCode ↗49% acc.
91
MediumReorganize String✓ Our Solution
37
Hash TableStringGreedySorting+2
LeetCode ↗56% acc.
92
MediumLongest Common Subsequence✓ Our Solution
37
StringDynamic Programming
LeetCode ↗58% acc.
93
MediumEgg Drop With 2 Eggs and N Floors✓ Our Solution
37
MathDynamic Programming
LeetCode ↗74% acc.
94
MediumCourse Schedule II✓ Our Solution
37
Depth-First SearchBreadth-First SearchGraphTopological Sort
LeetCode ↗53% acc.
95
MediumPopulating Next Right Pointers in Each Node✓ Our Solution
37
Linked ListTreeDepth-First SearchBreadth-First Search+1
LeetCode ↗65% acc.
96
MediumKnight Probability in Chessboard✓ Our Solution
37
Dynamic Programming
LeetCode ↗57% acc.
97
MediumAsteroid Collision✓ Our Solution
37
ArrayStackSimulation
LeetCode ↗46% acc.
98
HardThe Skyline Problem✓ Our Solution
37
ArrayDivide and ConquerBinary Indexed TreeSegment Tree+3
LeetCode ↗44% acc.
99
HardBasic Calculator✓ Our Solution
37
MathStringStackRecursion
LeetCode ↗46% acc.
100
MediumCount Number of Maximum Bitwise-OR Subsets✓ Our Solution
37
ArrayBacktrackingBit ManipulationEnumeration
LeetCode ↗88% acc.