WL

Walmart Labs

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

Showing 100 of 100 questions

1
MediumLongest Substring Without Repeating Characters✓ Our Solution
100
Hash TableStringSliding Window
LeetCode ↗37% acc.
2
MediumLRU Cache✓ Our Solution
96
Hash TableLinked ListDesignDoubly-Linked List
LeetCode ↗45% acc.
3
EasyValid Parentheses✓ Our Solution
87
StringStack
LeetCode ↗42% acc.
4
HardMax Stack
85
Linked ListStackDesignDoubly-Linked List+1
LeetCode ↗46% acc.
5
MediumMerge Intervals✓ Our Solution
82
ArraySorting
LeetCode ↗49% acc.
6
HardTrapping Rain Water✓ Our Solution
82
ArrayTwo PointersDynamic ProgrammingStack+1
LeetCode ↗65% acc.
7
EasyBest Time to Buy and Sell Stock✓ Our Solution
80
ArrayDynamic Programming
LeetCode ↗55% acc.
8
EasyTwo Sum✓ Our Solution
77
ArrayHash Table
LeetCode ↗56% acc.
9
MediumLongest Palindromic Substring✓ Our Solution
77
Two PointersStringDynamic Programming
LeetCode ↗36% acc.
10
MediumWord Break✓ Our Solution
77
ArrayHash TableStringDynamic Programming+2
LeetCode ↗48% acc.
11
MediumDivide Intervals Into Minimum Number of Groups✓ Our Solution
77
ArrayTwo PointersGreedySorting+2
LeetCode ↗64% acc.
12
HardMinimum Number of Operations to Make Arrays Similar✓ Our Solution
75
ArrayGreedySorting
LeetCode ↗60% acc.
13
HardCount Good Triplets in an Array✓ Our Solution
75
ArrayBinary SearchDivide and ConquerBinary Indexed Tree+3
LeetCode ↗66% acc.
14
MediumMinimum Operations to Make Array Equal II✓ Our Solution
75
ArrayMathGreedy
LeetCode ↗32% acc.
15
HardMaximum Number of Tasks You Can Assign✓ Our Solution
75
ArrayTwo PointersBinary SearchGreedy+3
LeetCode ↗51% acc.
16
EasyMiddle of the Linked List✓ Our Solution
75
Linked ListTwo Pointers
LeetCode ↗81% acc.
17
HardNumber of Ways to Separate Numbers✓ Our Solution
75
StringDynamic ProgrammingSuffix Array
LeetCode ↗21% acc.
18
EasyThe Winner University
75
Database
LeetCode ↗75% acc.
19
MediumGenerate Parentheses✓ Our Solution
75
StringDynamic ProgrammingBacktracking
LeetCode ↗77% acc.
20
MediumKth Largest Element in an Array✓ Our Solution
73
ArrayDivide and ConquerSortingHeap (Priority Queue)+1
LeetCode ↗68% acc.
21
MediumSearch in Rotated Sorted Array✓ Our Solution
73
ArrayBinary Search
LeetCode ↗43% acc.
22
MediumGroup Anagrams✓ Our Solution
73
ArrayHash TableStringSorting
LeetCode ↗71% acc.
23
MediumNumber of Islands✓ Our Solution
73
ArrayDepth-First SearchBreadth-First SearchUnion Find+1
LeetCode ↗62% acc.
24
MediumSpiral Matrix✓ Our Solution
73
ArrayMatrixSimulation
LeetCode ↗54% acc.
25
MediumLongest Consecutive Sequence✓ Our Solution
70
ArrayHash TableUnion Find
LeetCode ↗47% acc.
26
MediumSort Colors✓ Our Solution
70
ArrayTwo PointersSorting
LeetCode ↗68% acc.
27
MediumValid Sudoku✓ Our Solution
67
ArrayHash TableMatrix
LeetCode ↗62% acc.
28
MediumCoin Change✓ Our Solution
67
ArrayDynamic ProgrammingBreadth-First Search
LeetCode ↗46% acc.
29
MediumBinary Tree Zigzag Level Order Traversal✓ Our Solution
67
TreeBreadth-First SearchBinary Tree
LeetCode ↗62% acc.
30
EasyMove Zeroes✓ Our Solution
67
ArrayTwo Pointers
LeetCode ↗63% acc.
31
MediumCombination Sum✓ Our Solution
67
ArrayBacktracking
LeetCode ↗75% acc.
32
MediumRotate Array✓ Our Solution
63
ArrayMathTwo Pointers
LeetCode ↗43% acc.
33
EasyDegree of an Array✓ Our Solution
63
ArrayHash Table
LeetCode ↗57% acc.
34
MediumAll Nodes Distance K in Binary Tree✓ Our Solution
63
Hash TableTreeDepth-First SearchBreadth-First Search+1
LeetCode ↗66% acc.
35
63
ArrayTwo PointersSorting
LeetCode ↗37% acc.
36
MediumTop K Frequent Elements✓ Our Solution
63
ArrayHash TableDivide and ConquerSorting+4
LeetCode ↗65% acc.
37
MediumPow(x, n)✓ Our Solution
63
MathRecursion
LeetCode ↗37% acc.
38
HardMedian of Two Sorted Arrays✓ Our Solution
63
ArrayBinary SearchDivide and Conquer
LeetCode ↗44% acc.
39
MediumHouse Robber✓ Our Solution
59
ArrayDynamic Programming
LeetCode ↗52% acc.
40
HardLFU Cache✓ Our Solution
59
Hash TableLinked ListDesignDoubly-Linked List
LeetCode ↗47% acc.
41
MediumFlatten Nested List Iterator✓ Our Solution
59
StackTreeDepth-First SearchDesign+2
LeetCode ↗65% acc.
42
HardReverse Nodes in k-Group✓ Our Solution
59
Linked ListRecursion
LeetCode ↗63% acc.
43
EasyLongest Common Prefix✓ Our Solution
59
StringTrie
LeetCode ↗45% acc.
44
MediumDaily Temperatures✓ Our Solution
59
ArrayStackMonotonic Stack
LeetCode ↗67% acc.
45
HardMerge k Sorted Lists✓ Our Solution
59
Linked ListDivide and ConquerHeap (Priority Queue)Merge Sort
LeetCode ↗57% acc.
46
HardFirst Missing Positive✓ Our Solution
59
ArrayHash Table
LeetCode ↗41% acc.
47
MediumWord Search✓ Our Solution
59
ArrayStringBacktrackingDepth-First Search+1
LeetCode ↗45% acc.
48
EasyAdd Binary✓ Our Solution
59
MathStringBit ManipulationSimulation
LeetCode ↗56% acc.
49
MediumCopy List with Random Pointer✓ Our Solution
59
Hash TableLinked List
LeetCode ↗61% acc.
50
MediumSearch a 2D Matrix✓ Our Solution
59
ArrayBinary SearchMatrix
LeetCode ↗52% acc.
51
MediumMaximum Subarray✓ Our Solution
53
ArrayDivide and ConquerDynamic Programming
LeetCode ↗52% acc.
52
EasySquares of a Sorted Array✓ Our Solution
53
ArrayTwo PointersSorting
LeetCode ↗73% acc.
53
MediumMin Stack✓ Our Solution
53
StackDesign
LeetCode ↗56% acc.
54
HardMinimum Window Substring✓ Our Solution
53
Hash TableStringSliding Window
LeetCode ↗45% acc.
55
MediumBinary Tree Right Side View✓ Our Solution
53
TreeDepth-First SearchBreadth-First SearchBinary Tree
LeetCode ↗67% acc.
56
MediumKeys and Rooms✓ Our Solution
53
Depth-First SearchBreadth-First SearchGraph
LeetCode ↗75% acc.
57
MediumCourse Schedule II✓ Our Solution
53
Depth-First SearchBreadth-First SearchGraphTopological Sort
LeetCode ↗53% acc.
58
MediumMax Consecutive Ones III✓ Our Solution
46
ArrayBinary SearchSliding WindowPrefix Sum
LeetCode ↗66% acc.
59
MediumFlatten Deeply Nested Array✓ Our Solution
46
LeetCode ↗64% acc.
60
EasyFirst Unique Character in a String✓ Our Solution
46
Hash TableStringQueueCounting
LeetCode ↗64% acc.
61
MediumMaximum Profit From Trading Stocks
46
ArrayDynamic Programming
LeetCode ↗47% acc.
62
MediumContainer With Most Water✓ Our Solution
46
ArrayTwo PointersGreedy
LeetCode ↗58% acc.
63
MediumPartition Equal Subset Sum✓ Our Solution
46
ArrayDynamic Programming
LeetCode ↗48% acc.
64
EasyMerge Two Sorted Lists✓ Our Solution
46
Linked ListRecursion
LeetCode ↗67% acc.
65
MediumSubarray Sum Equals K✓ Our Solution
46
ArrayHash TablePrefix Sum
LeetCode ↗45% acc.
66
MediumInterleaving String✓ Our Solution
46
StringDynamic Programming
LeetCode ↗42% acc.
67
MediumBoundary of Binary Tree
46
TreeDepth-First SearchBinary Tree
LeetCode ↗47% acc.
68
MediumPath Sum II✓ Our Solution
46
BacktrackingTreeDepth-First SearchBinary Tree
LeetCode ↗60% acc.
69
MediumPopulating Next Right Pointers in Each Node✓ Our Solution
46
Linked ListTreeDepth-First SearchBreadth-First Search+1
LeetCode ↗65% acc.
70
HardWildcard Matching✓ Our Solution
46
StringDynamic ProgrammingGreedyRecursion
LeetCode ↗30% acc.
71
MediumCourse Schedule✓ Our Solution
46
Depth-First SearchBreadth-First SearchGraphTopological Sort
LeetCode ↗49% acc.
72
MediumKoko Eating Bananas✓ Our Solution
46
ArrayBinary Search
LeetCode ↗49% acc.
73
MediumBest Time to Buy and Sell Stock II✓ Our Solution
46
ArrayDynamic ProgrammingGreedy
LeetCode ↗70% acc.
74
MediumJump Game II✓ Our Solution
46
ArrayDynamic ProgrammingGreedy
LeetCode ↗42% acc.
75
EasyPalindrome Number✓ Our Solution
37
Math
LeetCode ↗59% acc.
76
EasyValid Palindrome II✓ Our Solution
37
Two PointersStringGreedy
LeetCode ↗43% acc.
77
MediumBoats to Save People✓ Our Solution
37
ArrayTwo PointersGreedySorting
LeetCode ↗60% acc.
78
MediumFruit Into Baskets✓ Our Solution
37
ArrayHash TableSliding Window
LeetCode ↗46% acc.
79
MediumMinimum Add to Make Parentheses Valid✓ Our Solution
37
StringStackGreedy
LeetCode ↗75% acc.
80
EasyReverse Words in a String III✓ Our Solution
37
Two PointersString
LeetCode ↗84% acc.
81
MediumReorganize String✓ Our Solution
37
Hash TableStringGreedySorting+2
LeetCode ↗56% acc.
82
EasyLinked List Cycle✓ Our Solution
37
Hash TableLinked ListTwo Pointers
LeetCode ↗53% acc.
83
HardMaximum Number of Non-overlapping Palindrome Substrings✓ Our Solution
37
Two PointersStringDynamic ProgrammingGreedy
LeetCode ↗42% acc.
84
HardLargest Rectangle in Histogram✓ Our Solution
37
ArrayStackMonotonic Stack
LeetCode ↗47% acc.
85
MediumReverse Words in a String✓ Our Solution
37
Two PointersString
LeetCode ↗52% acc.
86
MediumAdd Two Numbers✓ Our Solution
37
Linked ListMathRecursion
LeetCode ↗46% acc.
87
MediumSecond Highest Salary✓ Our Solution
37
Database
LeetCode ↗44% acc.
88
MediumPalindrome Partitioning✓ Our Solution
37
StringDynamic ProgrammingBacktracking
LeetCode ↗72% acc.
89
HardBinary Tree Maximum Path Sum✓ Our Solution
37
Dynamic ProgrammingTreeDepth-First SearchBinary Tree
LeetCode ↗41% acc.
90
MediumCount Primes✓ Our Solution
37
ArrayMathEnumerationNumber Theory
LeetCode ↗35% acc.
91
MediumPopulating Next Right Pointers in Each Node II✓ Our Solution
37
Linked ListTreeDepth-First SearchBreadth-First Search+1
LeetCode ↗56% acc.
92
MediumMaximal Square✓ Our Solution
37
ArrayDynamic ProgrammingMatrix
LeetCode ↗49% acc.
93
MediumProduct of Array Except Self✓ Our Solution
37
ArrayPrefix Sum
LeetCode ↗68% acc.
94
EasyValid Anagram✓ Our Solution
37
Hash TableStringSorting
LeetCode ↗67% acc.
95
MediumPerfect Squares✓ Our Solution
37
MathDynamic ProgrammingBreadth-First Search
LeetCode ↗56% acc.
96
MediumBinary Tree Longest Consecutive Sequence
37
TreeDepth-First SearchBinary Tree
LeetCode ↗54% acc.
97
MediumDecode Ways✓ Our Solution
37
StringDynamic Programming
LeetCode ↗37% acc.
98
EasyMerge Sorted Array✓ Our Solution
37
ArrayTwo PointersSorting
LeetCode ↗53% acc.
99
EasyLongest Palindrome✓ Our Solution
37
Hash TableStringGreedy
LeetCode ↗56% acc.
100
MediumDecode String✓ Our Solution
37
StringStackRecursion
LeetCode ↗61% acc.