S

Salesforce

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

Showing 100 of 100 questions

1
MediumWord Break✓ Our Solution
94
ArrayHash TableStringDynamic Programming+2
LeetCode ↗48% acc.
2
MediumSubarray Product Less Than K✓ Our Solution
87
ArrayBinary SearchSliding WindowPrefix Sum
LeetCode ↗53% acc.
3
MediumString Compression✓ Our Solution
85
Two PointersString
LeetCode ↗58% acc.
4
HardLFU Cache✓ Our Solution
80
Hash TableLinked ListDesignDoubly-Linked List
LeetCode ↗47% acc.
5
HardDistinct Subsequences✓ Our Solution
80
StringDynamic Programming
LeetCode ↗50% acc.
6
MediumMerge Intervals✓ Our Solution
80
ArraySorting
LeetCode ↗49% acc.
7
MediumLRU Cache✓ Our Solution
79
Hash TableLinked ListDesignDoubly-Linked List
LeetCode ↗45% acc.
8
MediumGroup Anagrams✓ Our Solution
75
ArrayHash TableStringSorting
LeetCode ↗71% acc.
9
MediumNumber of Islands✓ Our Solution
75
ArrayDepth-First SearchBreadth-First SearchUnion Find+1
LeetCode ↗62% acc.
10
MediumLongest Substring Without Repeating Characters✓ Our Solution
73
Hash TableStringSliding Window
LeetCode ↗37% acc.
11
HardMaximum Frequency Stack✓ Our Solution
73
Hash TableStackDesignOrdered Set
LeetCode ↗66% acc.
12
MediumCount the Number of Fair Pairs✓ Our Solution
73
ArrayTwo PointersBinary SearchSorting
LeetCode ↗53% acc.
13
MediumPalindromic Substrings✓ Our Solution
73
Two PointersStringDynamic Programming
LeetCode ↗72% acc.
14
HardDesign a Text Editor✓ Our Solution
73
Linked ListStringStackDesign+2
LeetCode ↗47% acc.
15
EasyHeight Checker✓ Our Solution
73
ArraySortingCounting Sort
LeetCode ↗81% acc.
16
EasyCheck If a Number Is Majority Element in a Sorted Array
71
ArrayBinary Search
LeetCode ↗59% acc.
17
MediumBeautiful Towers I✓ Our Solution
71
ArrayStackMonotonic Stack
LeetCode ↗43% acc.
18
MediumBeautiful Towers II✓ Our Solution
71
ArrayStackMonotonic Stack
LeetCode ↗35% acc.
19
MediumCourse Schedule II✓ Our Solution
71
Depth-First SearchBreadth-First SearchGraphTopological Sort
LeetCode ↗53% acc.
20
EasyCheck Whether Two Strings are Almost Equivalent✓ Our Solution
71
Hash TableStringCounting
LeetCode ↗64% acc.
21
HardSplit Array Largest Sum✓ Our Solution
68
ArrayBinary SearchDynamic ProgrammingGreedy+1
LeetCode ↗58% acc.
22
EasyBest Time to Buy and Sell Stock✓ Our Solution
68
ArrayDynamic Programming
LeetCode ↗55% acc.
23
EasyValid Parentheses✓ Our Solution
68
StringStack
LeetCode ↗42% acc.
24
HardTrapping Rain Water✓ Our Solution
68
ArrayTwo PointersDynamic ProgrammingStack+1
LeetCode ↗65% acc.
25
MediumKth Largest Element in an Array✓ Our Solution
66
ArrayDivide and ConquerSortingHeap (Priority Queue)+1
LeetCode ↗68% acc.
26
MediumBeautiful Arrangement✓ Our Solution
66
ArrayDynamic ProgrammingBacktrackingBit Manipulation+1
LeetCode ↗65% acc.
27
HardBinary Tree Maximum Path Sum✓ Our Solution
66
Dynamic ProgrammingTreeDepth-First SearchBinary Tree
LeetCode ↗41% acc.
28
EasyMaximum Product of Three Numbers✓ Our Solution
62
ArrayMathSorting
LeetCode ↗45% acc.
29
MediumInteger to Roman✓ Our Solution
62
Hash TableMathString
LeetCode ↗69% acc.
30
MediumAsteroid Collision✓ Our Solution
62
ArrayStackSimulation
LeetCode ↗46% acc.
31
MediumLargest Number✓ Our Solution
62
ArrayStringGreedySorting
LeetCode ↗41% acc.
32
59
ArrayTwo PointersSorting
LeetCode ↗37% acc.
33
MediumCoin Change✓ Our Solution
59
ArrayDynamic ProgrammingBreadth-First Search
LeetCode ↗46% acc.
34
MediumMeeting Rooms II
59
ArrayTwo PointersGreedySorting+2
LeetCode ↗52% acc.
35
MediumTask Scheduler✓ Our Solution
59
ArrayHash TableGreedySorting+2
LeetCode ↗62% acc.
36
MediumLongest Palindromic Substring✓ Our Solution
59
Two PointersStringDynamic Programming
LeetCode ↗36% acc.
37
HardMinimum Window Substring✓ Our Solution
59
Hash TableStringSliding Window
LeetCode ↗45% acc.
38
HardCount Palindromic Subsequences✓ Our Solution
59
StringDynamic Programming
LeetCode ↗39% acc.
39
MediumValidate Binary Search Tree✓ Our Solution
54
TreeDepth-First SearchBinary Search TreeBinary Tree
LeetCode ↗34% acc.
40
MediumTop K Frequent Elements✓ Our Solution
54
ArrayHash TableDivide and ConquerSorting+4
LeetCode ↗65% acc.
41
MediumDecode Ways✓ Our Solution
54
StringDynamic Programming
LeetCode ↗37% acc.
42
MediumMin Stack✓ Our Solution
54
StackDesign
LeetCode ↗56% acc.
43
MediumMaximal Square✓ Our Solution
54
ArrayDynamic ProgrammingMatrix
LeetCode ↗49% acc.
44
49
ArrayGreedySortingHeap (Priority Queue)
LeetCode ↗53% acc.
45
MediumMaximize Greatness of an Array✓ Our Solution
49
ArrayTwo PointersGreedySorting
LeetCode ↗59% acc.
46
MediumProduct of Array Except Self✓ Our Solution
49
ArrayPrefix Sum
LeetCode ↗68% acc.
47
MediumReconstruct Original Digits from English✓ Our Solution
49
Hash TableMathString
LeetCode ↗52% acc.
48
EasyIs Subsequence✓ Our Solution
49
Two PointersStringDynamic Programming
LeetCode ↗48% acc.
49
HardPartition Array Into Two Arrays to Minimize Sum Difference✓ Our Solution
49
ArrayTwo PointersBinary SearchDynamic Programming+3
LeetCode ↗22% acc.
50
MediumSearch in Rotated Sorted Array✓ Our Solution
49
ArrayBinary Search
LeetCode ↗43% acc.
51
EasyCount Binary Substrings✓ Our Solution
49
Two PointersString
LeetCode ↗66% acc.
52
MediumDecode String✓ Our Solution
49
StringStackRecursion
LeetCode ↗61% acc.
53
EasyDegree of an Array✓ Our Solution
49
ArrayHash Table
LeetCode ↗57% acc.
54
MediumCombination Sum✓ Our Solution
49
ArrayBacktracking
LeetCode ↗75% acc.
55
MediumJump Game✓ Our Solution
49
ArrayDynamic ProgrammingGreedy
LeetCode ↗39% acc.
56
MediumDaily Temperatures✓ Our Solution
49
ArrayStackMonotonic Stack
LeetCode ↗67% acc.
57
MediumMax Area of Island✓ Our Solution
49
ArrayDepth-First SearchBreadth-First SearchUnion Find+1
LeetCode ↗73% acc.
58
MediumPopulating Next Right Pointers in Each Node✓ Our Solution
49
Linked ListTreeDepth-First SearchBreadth-First Search+1
LeetCode ↗65% acc.
59
MediumCapacity To Ship Packages Within D Days✓ Our Solution
49
ArrayBinary Search
LeetCode ↗72% acc.
60
MediumContainer With Most Water✓ Our Solution
49
ArrayTwo PointersGreedy
LeetCode ↗58% acc.
61
HardMerge k Sorted Lists✓ Our Solution
42
Linked ListDivide and ConquerHeap (Priority Queue)Merge Sort
LeetCode ↗57% acc.
62
EasyRoman to Integer✓ Our Solution
42
Hash TableMathString
LeetCode ↗65% acc.
63
MediumRotting Oranges✓ Our Solution
42
ArrayBreadth-First SearchMatrix
LeetCode ↗57% acc.
64
MediumSmallest Subtree with all the Deepest Nodes✓ Our Solution
42
Hash TableTreeDepth-First SearchBreadth-First Search+1
LeetCode ↗72% acc.
65
HardDesign In-Memory File System
42
Hash TableStringDesignTrie+1
LeetCode ↗48% acc.
66
MediumPow(x, n)✓ Our Solution
42
MathRecursion
LeetCode ↗37% acc.
67
HardFind Median from Data Stream✓ Our Solution
42
Two PointersDesignSortingHeap (Priority Queue)+1
LeetCode ↗53% acc.
68
MediumLowest Common Ancestor of a Binary Tree✓ Our Solution
42
TreeDepth-First SearchBinary Tree
LeetCode ↗67% acc.
69
EasyMove Zeroes✓ Our Solution
42
ArrayTwo Pointers
LeetCode ↗63% acc.
70
MediumHouse Robber✓ Our Solution
42
ArrayDynamic Programming
LeetCode ↗52% acc.
71
MediumKth Smallest Element in a Sorted Matrix✓ Our Solution
42
ArrayBinary SearchSortingHeap (Priority Queue)+1
LeetCode ↗64% acc.
72
MediumConstruct Binary Tree from Preorder and Inorder Traversal✓ Our Solution
42
ArrayHash TableDivide and ConquerTree+1
LeetCode ↗67% acc.
73
EasyMaximum Difference Between Increasing Elements✓ Our Solution
42
Array
LeetCode ↗66% acc.
74
MediumGraph Valid Tree
42
Depth-First SearchBreadth-First SearchUnion FindGraph
LeetCode ↗49% acc.
75
HardSerialize and Deserialize Binary Tree✓ Our Solution
42
StringTreeDepth-First SearchBreadth-First Search+2
LeetCode ↗59% acc.
76
HardWildcard Matching✓ Our Solution
42
StringDynamic ProgrammingGreedyRecursion
LeetCode ↗30% acc.
77
MediumRange Addition
42
ArrayPrefix Sum
LeetCode ↗72% acc.
78
HardFirst Missing Positive✓ Our Solution
42
ArrayHash Table
LeetCode ↗41% acc.
79
MediumSort Colors✓ Our Solution
33
ArrayTwo PointersSorting
LeetCode ↗68% acc.
80
MediumSubsets✓ Our Solution
33
ArrayBacktrackingBit Manipulation
LeetCode ↗81% acc.
81
MediumMinimum Path Sum✓ Our Solution
33
ArrayDynamic ProgrammingMatrix
LeetCode ↗66% acc.
82
MediumBest Time to Buy and Sell Stock II✓ Our Solution
33
ArrayDynamic ProgrammingGreedy
LeetCode ↗70% acc.
83
MediumPairs of Songs With Total Durations Divisible by 60✓ Our Solution
33
ArrayHash TableCounting
LeetCode ↗53% acc.
84
HardStream of Characters✓ Our Solution
33
ArrayStringDesignTrie+1
LeetCode ↗51% acc.
85
MediumFlatten Binary Tree to Linked List✓ Our Solution
33
Linked ListStackTreeDepth-First Search+1
LeetCode ↗69% acc.
86
MediumNumber of Matching Subsequences✓ Our Solution
33
ArrayHash TableStringBinary Search+3
LeetCode ↗51% acc.
87
MediumTriangle✓ Our Solution
33
ArrayDynamic Programming
LeetCode ↗59% acc.
88
MediumInsert Delete GetRandom O(1)✓ Our Solution
33
ArrayHash TableMathDesign+1
LeetCode ↗55% acc.
89
EasyMajority Element✓ Our Solution
33
ArrayHash TableDivide and ConquerSorting+1
LeetCode ↗66% acc.
90
EasyIsomorphic Strings✓ Our Solution
33
Hash TableString
LeetCode ↗47% acc.
91
Medium2 Keys Keyboard✓ Our Solution
33
MathDynamic Programming
LeetCode ↗59% acc.
92
HardThe Skyline Problem✓ Our Solution
33
ArrayDivide and ConquerBinary Indexed TreeSegment Tree+3
LeetCode ↗44% acc.
93
MediumMajority Element II✓ Our Solution
33
ArrayHash TableSortingCounting
LeetCode ↗54% acc.
94
MediumDifferent Ways to Add Parentheses✓ Our Solution
33
MathStringDynamic ProgrammingRecursion+1
LeetCode ↗72% acc.
95
EasyReverse Words in a String III✓ Our Solution
33
Two PointersString
LeetCode ↗84% acc.
96
MediumWalls and Gates
33
ArrayBreadth-First SearchMatrix
LeetCode ↗63% acc.
97
HardN-Queens✓ Our Solution
33
ArrayBacktracking
LeetCode ↗73% acc.
98
MediumPredict the Winner✓ Our Solution
33
ArrayMathDynamic ProgrammingRecursion+1
LeetCode ↗56% acc.
99
HardLongest Valid Parentheses✓ Our Solution
33
StringDynamic ProgrammingStack
LeetCode ↗36% acc.
100
MediumCount Primes✓ Our Solution
33
ArrayMathEnumerationNumber Theory
LeetCode ↗35% acc.