G

Google

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

Showing 100 of 100 questions

1
EasyTwo Sum✓ Our Solution
100
ArrayHash Table
LeetCode ↗56% acc.
2
MediumAdd Two Numbers✓ Our Solution
75
Linked ListMathRecursion
LeetCode ↗46% acc.
3
HardTrapping Rain Water✓ Our Solution
74
ArrayTwo PointersDynamic ProgrammingStack+1
LeetCode ↗65% acc.
4
HardMedian of Two Sorted Arrays✓ Our Solution
73
ArrayBinary SearchDivide and Conquer
LeetCode ↗44% acc.
5
MediumLongest Substring Without Repeating Characters✓ Our Solution
70
Hash TableStringSliding Window
LeetCode ↗37% acc.
6
EasyLongest Common Prefix✓ Our Solution
70
StringTrie
LeetCode ↗45% acc.
7
EasyValid Parentheses✓ Our Solution
67
StringStack
LeetCode ↗42% acc.
8
MediumLongest Consecutive Sequence✓ Our Solution
66
ArrayHash TableUnion Find
LeetCode ↗47% acc.
9
MediumMaximum Subarray✓ Our Solution
63
ArrayDivide and ConquerDynamic Programming
LeetCode ↗52% acc.
10
MediumRotate Image✓ Our Solution
58
ArrayMathMatrix
LeetCode ↗78% acc.
11
MediumSearch in Rotated Sorted Array✓ Our Solution
58
ArrayBinary Search
LeetCode ↗43% acc.
12
EasyReverse Linked List✓ Our Solution
57
Linked ListRecursion
LeetCode ↗79% acc.
13
56
ArrayTwo PointersSorting
LeetCode ↗38% acc.
14
MediumJump Game✓ Our Solution
56
ArrayDynamic ProgrammingGreedy
LeetCode ↗39% acc.
15
MediumGroup Anagrams✓ Our Solution
55
ArrayHash TableStringSorting
LeetCode ↗71% acc.
16
HardFind Median from Data Stream✓ Our Solution
55
Two PointersDesignSortingHeap (Priority Queue)+1
LeetCode ↗53% acc.
17
EasyPascal's Triangle✓ Our Solution
55
ArrayDynamic Programming
LeetCode ↗77% acc.
18
EasySingle Number✓ Our Solution
55
ArrayBit Manipulation
LeetCode ↗76% acc.
19
EasyFind the Index of the First Occurrence in a String✓ Our Solution
54
Two PointersStringString Matching
LeetCode ↗45% acc.
20
HardMaximal Rectangle✓ Our Solution
54
ArrayDynamic ProgrammingStackMatrix+1
LeetCode ↗54% acc.
21
EasyValid Anagram✓ Our Solution
51
Hash TableStringSorting
LeetCode ↗67% acc.
22
HardFirst Missing Positive✓ Our Solution
51
ArrayHash Table
LeetCode ↗41% acc.
23
MediumJump Game II✓ Our Solution
51
ArrayDynamic ProgrammingGreedy
LeetCode ↗42% acc.
24
EasyAdd Binary✓ Our Solution
50
MathStringBit ManipulationSimulation
LeetCode ↗56% acc.
25
HardText Justification✓ Our Solution
49
ArrayStringSimulation
LeetCode ↗48% acc.
26
MediumInsert Interval✓ Our Solution
47
Array
LeetCode ↗43% acc.
27
MediumMaximum Product Subarray✓ Our Solution
46
ArrayDynamic Programming
LeetCode ↗35% acc.
28
MediumString to Integer (atoi)✓ Our Solution
44
String
LeetCode ↗19% acc.
29
EasySame Tree✓ Our Solution
44
TreeDepth-First SearchBreadth-First SearchBinary Tree
LeetCode ↗65% acc.
30
MediumSearch a 2D Matrix✓ Our Solution
44
ArrayBinary SearchMatrix
LeetCode ↗52% acc.
31
EasyIsomorphic Strings✓ Our Solution
43
Hash TableString
LeetCode ↗47% acc.
32
Medium3Sum Closest✓ Our Solution
43
ArrayTwo PointersSorting
LeetCode ↗47% acc.
33
HardWildcard Matching✓ Our Solution
43
StringDynamic ProgrammingGreedyRecursion
LeetCode ↗30% acc.
34
MediumFind the Duplicate Number✓ Our Solution
43
ArrayTwo PointersBinary SearchBit Manipulation
LeetCode ↗63% acc.
35
EasyContains Duplicate II✓ Our Solution
42
ArrayHash TableSliding Window
LeetCode ↗49% acc.
36
EasyMissing Number✓ Our Solution
42
ArrayHash TableMathBinary Search+2
LeetCode ↗70% acc.
37
EasySymmetric Tree✓ Our Solution
42
TreeDepth-First SearchBreadth-First SearchBinary Tree
LeetCode ↗59% acc.
38
MediumMinimum Path Sum✓ Our Solution
41
ArrayDynamic ProgrammingMatrix
LeetCode ↗66% acc.
39
MediumKth Smallest Element in a BST✓ Our Solution
40
TreeDepth-First SearchBinary Search TreeBinary Tree
LeetCode ↗75% acc.
40
MediumCopy List with Random Pointer✓ Our Solution
39
Hash TableLinked List
LeetCode ↗61% acc.
41
HardNumber of Islands II
39
ArrayHash TableUnion Find
LeetCode ↗40% acc.
42
MediumClone Graph✓ Our Solution
39
Hash TableDepth-First SearchBreadth-First SearchGraph
LeetCode ↗62% acc.
43
MediumInteger to Roman✓ Our Solution
38
Hash TableMathString
LeetCode ↗69% acc.
44
HardShortest Palindrome✓ Our Solution
38
StringRolling HashString MatchingHash Function
LeetCode ↗41% acc.
45
MediumFlatten Binary Tree to Linked List✓ Our Solution
37
Linked ListStackTreeDepth-First Search+1
LeetCode ↗69% acc.
46
MediumGroup Shifted Strings
35
ArrayHash TableString
LeetCode ↗67% acc.
47
HardWord Search II✓ Our Solution
35
ArrayStringBacktrackingTrie+1
LeetCode ↗37% acc.
48
MediumBinary Tree Right Side View✓ Our Solution
35
TreeDepth-First SearchBreadth-First SearchBinary Tree
LeetCode ↗67% acc.
49
MediumSubsets II✓ Our Solution
35
ArrayBacktrackingBit Manipulation
LeetCode ↗60% acc.
50
HardThe Skyline Problem✓ Our Solution
33
ArrayDivide and ConquerBinary Indexed TreeSegment Tree+3
LeetCode ↗44% acc.
51
EasyImplement Stack using Queues✓ Our Solution
33
StackDesignQueue
LeetCode ↗67% acc.
52
MediumBest Time to Buy and Sell Stock with Cooldown✓ Our Solution
33
ArrayDynamic Programming
LeetCode ↗60% acc.
53
EasyMissing Ranges
32
Array
LeetCode ↗35% acc.
54
MediumGraph Valid Tree
32
Depth-First SearchBreadth-First SearchUnion FindGraph
LeetCode ↗49% acc.
55
MediumSecond Highest Salary✓ Our Solution
32
Database
LeetCode ↗44% acc.
56
MediumBasic Calculator II✓ Our Solution
31
MathStringStack
LeetCode ↗46% acc.
57
MediumGame of Life✓ Our Solution
31
ArrayMatrixSimulation
LeetCode ↗71% acc.
58
MediumFraction to Recurring Decimal✓ Our Solution
31
Hash TableMathString
LeetCode ↗26% acc.
59
HardNumber of Digit One✓ Our Solution
31
MathDynamic ProgrammingRecursion
LeetCode ↗36% acc.
60
MediumWalls and Gates
30
ArrayBreadth-First SearchMatrix
LeetCode ↗63% acc.
61
EasyBinary Tree Paths✓ Our Solution
30
StringBacktrackingTreeDepth-First Search+1
LeetCode ↗67% acc.
62
MediumWiggle Sort
28
ArrayGreedySorting
LeetCode ↗68% acc.
63
HardBest Time to Buy and Sell Stock IV✓ Our Solution
28
ArrayDynamic Programming
LeetCode ↗47% acc.
64
Medium3Sum Smaller
28
ArrayTwo PointersBinary SearchSorting
LeetCode ↗51% acc.
65
MediumCombinations✓ Our Solution
26
Backtracking
LeetCode ↗73% acc.
66
MediumLowest Common Ancestor of a Binary Search Tree✓ Our Solution
26
TreeDepth-First SearchBinary Search TreeBinary Tree
LeetCode ↗68% acc.
67
HardRead N Characters Given read4 II - Call Multiple Times
26
ArraySimulationInteractive
LeetCode ↗43% acc.
68
MediumPaint Fence
25
Dynamic Programming
LeetCode ↗48% acc.
69
MediumLongest Substring with At Most Two Distinct Characters
25
Hash TableStringSliding Window
LeetCode ↗56% acc.
70
EasyFlip Game
25
String
LeetCode ↗65% acc.
71
EasyBinary Tree Postorder Traversal✓ Our Solution
25
StackTreeDepth-First SearchBinary Tree
LeetCode ↗76% acc.
72
EasyStrobogrammatic Number
25
Hash TableTwo PointersString
LeetCode ↗48% acc.
73
MediumZigzag Iterator
25
ArrayDesignQueueIterator
LeetCode ↗66% acc.
74
MediumSpiral Matrix II✓ Our Solution
24
ArrayMatrixSimulation
LeetCode ↗73% acc.
75
MediumPeeking Iterator✓ Our Solution
24
ArrayDesignIterator
LeetCode ↗60% acc.
76
HardDepartment Top Three Salaries✓ Our Solution
24
Database
LeetCode ↗58% acc.
77
HardClosest Binary Search Tree Value II
24
Two PointersStackTreeDepth-First Search+3
LeetCode ↗60% acc.
78
MediumFlatten 2D Vector
24
ArrayTwo PointersDesignIterator
LeetCode ↗50% acc.
79
MediumUnique Word Abbreviation
22
ArrayHash TableStringDesign
LeetCode ↗27% acc.
80
MediumFlip Game II
22
MathDynamic ProgrammingBacktrackingMemoization+1
LeetCode ↗52% acc.
81
EasyPalindrome Permutation
22
Hash TableStringBit Manipulation
LeetCode ↗69% acc.
82
HardScramble String✓ Our Solution
21
StringDynamic Programming
LeetCode ↗42% acc.
83
MediumInsertion Sort List✓ Our Solution
21
Linked ListSorting
LeetCode ↗56% acc.
84
MediumFactorial Trailing Zeroes✓ Our Solution
21
Math
LeetCode ↗45% acc.
85
MediumRemove Duplicates from Sorted List II✓ Our Solution
21
Linked ListTwo Pointers
LeetCode ↗50% acc.
86
MediumPopulating Next Right Pointers in Each Node✓ Our Solution
19
Linked ListTreeDepth-First SearchBreadth-First Search+1
LeetCode ↗65% acc.
87
EasyWord Pattern✓ Our Solution
19
Hash TableString
LeetCode ↗43% acc.
88
HardN-Queens II✓ Our Solution
19
Backtracking
LeetCode ↗77% acc.
89
EasyMinimum Depth of Binary Tree✓ Our Solution
19
TreeDepth-First SearchBreadth-First SearchBinary Tree
LeetCode ↗51% acc.
90
MediumBitwise AND of Numbers Range✓ Our Solution
17
Bit Manipulation
LeetCode ↗48% acc.
91
MediumRank Scores✓ Our Solution
15
Database
LeetCode ↗65% acc.
92
HardValid Number✓ Our Solution
13
String
LeetCode ↗22% acc.
93
EasyRead N Characters Given Read4
13
ArraySimulationInteractive
LeetCode ↗42% acc.
94
MediumGray Code✓ Our Solution
13
MathBacktrackingBit Manipulation
LeetCode ↗62% acc.
95
HardRemove Invalid Parentheses✓ Our Solution
13
StringBacktrackingBreadth-First Search
LeetCode ↗49% acc.
96
HardFind Minimum in Rotated Sorted Array II✓ Our Solution
13
ArrayBinary Search
LeetCode ↗44% acc.
97
MediumFind the Celebrity
10
Two PointersGraphInteractive
LeetCode ↗48% acc.
98
MediumRange Sum Query - Mutable✓ Our Solution
5
ArrayDesignBinary Indexed TreeSegment Tree
LeetCode ↗42% acc.
99
MediumBinary Tree Level Order Traversal II✓ Our Solution
5
TreeBreadth-First SearchBinary Tree
LeetCode ↗66% acc.
100
MediumPaint House
5
ArrayDynamic Programming
LeetCode ↗64% acc.