👤
About
💼
Portfolio
🎓
Classes
⛳
etc.
Here serves all of my 211 Leetcode Submissions.
Leetcode Link
Filter
1
two sum
Easy
2
add two numbers
Medium
3
longest substring without repeating characters
Medium
4
median of two sorted arrays
Hard
5
longest palindromic substring
Medium
6
zigzag conversion
Medium
9
palindrome number
Easy
11
container with most water
Medium
12
integer to roman
Medium
13
roman to integer
Easy
14
longest common prefix
Easy
15
3sum
Medium
17
letter combinations of a phone number
Medium
19
remove nth node from end of list
Medium
20
valid parentheses
Easy
21
merge two sorted lists
Easy
22
generate parentheses
Medium
23
merge k sorted lists
Hard
25
reverse nodes in k group
Hard
26
remove duplicates from sorted array
Easy
27
remove element
Easy
28
find the index of the first occurrence in a string
Easy
29
divide two integers
Medium
30
substring with concatenation of all words
Hard
33
search in rotated sorted array
Medium
34
find first and last position of element in sorted array
Medium
35
search insert position
Easy
36
valid sudoku
Medium
39
combination sum
Medium
42
trapping rain water
Hard
45
jump game ii
Medium
46
permutations
Medium
48
rotate image
Medium
49
group anagrams
Medium
50
powx n
Medium
52
n queens ii
Hard
53
maximum subarray
Medium
54
spiral matrix
Medium
55
jump game
Medium
56
merge intervals
Medium
57
insert interval
Medium
58
length of last word
Easy
61
rotate list
Medium
62
unique paths
Medium
63
unique paths ii
Medium
64
minimum path sum
Medium
66
plus one
Easy
67
add binary
Easy
68
text justification
Hard
69
sqrtx
Easy
70
climbing stairs
Easy
71
simplify path
Medium
72
edit distance
Medium
73
set matrix zeroes
Medium
74
search a 2d matrix
Medium
76
minimum window substring
Hard
77
combinations
Medium
79
word search
Medium
80
remove duplicates from sorted array ii
Medium
82
remove duplicates from sorted list ii
Medium
86
partition list
Medium
88
merge sorted array
Easy
92
reverse linked list ii
Medium
97
interleaving string
Medium
98
validate binary search tree
Medium
100
same tree
Easy
101
symmetric tree
Easy
102
binary tree level order traversal
Medium
103
binary tree zigzag level order traversal
Medium
104
maximum depth of binary tree
Easy
105
construct binary tree from preorder and inorder traversal
Medium
106
construct binary tree from inorder and postorder traversal
Medium
108
convert sorted array to binary search tree
Easy
112
path sum
Easy
114
flatten binary tree to linked list
Medium
117
populating next right pointers in each node ii
Medium
120
triangle
Medium
121
best time to buy and sell stock
Easy
122
best time to buy and sell stock ii
Medium
123
best time to buy and sell stock iii
Hard
124
binary tree maximum path sum
Hard
125
valid palindrome
Easy
127
word ladder
Hard
128
longest consecutive sequence
Medium
129
sum root to leaf numbers
Medium
130
surrounded regions
Medium
133
clone graph
Medium
134
gas station
Medium
135
candy
Hard
136
single number
Easy
137
single number ii
Medium
138
copy list with random pointer
Medium
139
word break
Medium
141
linked list cycle
Easy
146
lru cache
Medium
148
sort list
Medium
149
max points on a line
Hard
150
evaluate reverse polish notation
Medium
151
reverse words in a string
Medium
153
find minimum in rotated sorted array
Medium
155
min stack
Medium
162
find peak element
Medium
167
two sum ii input array is sorted
Medium
169
majority element
Easy
172
factorial trailing zeroes
Medium
173
binary search tree iterator
Medium
188
best time to buy and sell stock iv
Hard
189
rotate array
Medium
190
reverse bits
Easy
191
number of 1 bits
Easy
198
house robber
Medium
199
binary tree right side view
Medium
200
number of islands
Medium
201
bitwise and of numbers range
Medium
202
happy number
Easy
205
isomorphic strings
Easy
206
reverse linked list
Easy
207
course schedule
Medium
208
implement trie prefix tree
Medium
209
minimum size subarray sum
Medium
210
course schedule ii
Medium
211
design add and search words data structure
Medium
212
word search ii
Hard
215
kth largest element in an array
Medium
216
combination sum iii
Medium
219
contains duplicate ii
Easy
221
maximal square
Medium
222
count complete tree nodes
Easy
224
basic calculator
Hard
226
invert binary tree
Easy
228
summary ranges
Easy
230
kth smallest element in a bst
Medium
236
lowest common ancestor of a binary tree
Medium
238
product of array except self
Medium
242
valid anagram
Easy
274
h index
Medium
282
expression add operators
Hard
283
move zeroes
Easy
289
game of life
Medium
290
word pattern
Easy
295
find median from data stream
Hard
300
longest increasing subsequence
Medium
322
coin change
Medium
328
odd even linked list
Medium
334
increasing triplet subsequence
Medium
338
counting bits
Easy
345
reverse vowels of a string
Easy
373
find k pairs with smallest sums
Medium
374
guess number higher or lower
Easy
380
insert delete getrandom o1
Medium
383
ransom note
Easy
392
is subsequence
Easy
394
decode string
Medium
399
evaluate division
Medium
433
minimum genetic mutation
Medium
435
non overlapping intervals
Medium
437
path sum iii
Medium
443
string compression
Medium
450
delete node in a bst
Medium
452
minimum number of arrows to burst balloons
Medium
502
ipo
Hard
530
minimum absolute difference in bst
Easy
547
number of provinces
Medium
605
can place flowers
Easy
637
average of levels in binary tree
Easy
643
maximum average subarray i
Easy
649
dota2 senate
Medium
714
best time to buy and sell stock with transaction fee
Medium
724
find pivot index
Easy
735
asteroid collision
Medium
739
daily temperatures
Medium
747
min cost climbing stairs
Easy
772
construct quad tree
Medium
783
search in a binary search tree
Easy
806
domino and tromino tiling
Medium
871
keys and rooms
Medium
904
leaf similar trees
Easy
907
koko eating bananas
Medium
937
online stock span
Medium
945
snakes and ladders
Medium
954
maximum sum circular subarray
Medium
969
number of recent calls
Easy
1036
rotting oranges
Medium
1046
max consecutive ones iii
Medium
1116
maximum level sum of a binary tree
Medium
1146
greatest common divisor of strings
Easy
1236
n th tribonacci number
Easy
1250
longest common subsequence
Medium
1319
unique number of occurrences
Easy
1392
find the difference of two arrays
Easy
1397
search suggestions system
Medium
1441
minimum flips to make a or b equal to c
Medium
1474
longest zigzag path in a binary tree
Medium
1528
kids with the greatest number of candies
Easy
1544
count good nodes in binary tree
Medium
1567
maximum number of vowels in a substring of given length
Medium
1576
reorder routes to make all paths lead to the city zero
Medium
1586
longest subarray of 1s after deleting one element
Medium
1777
determine if two strings are close
Medium
1798
max number of k sum pairs
Medium
1833
find the highest altitude
Easy
1894
merge strings alternately
Easy
2038
nearest exit from entrance in maze
Medium
2216
delete the middle node of a linked list
Medium
2236
maximum twin sum of a linked list
Medium
2392
successful pairs of spells and potions
Medium
2413
smallest number in infinite set
Medium
2428
equal row and column pairs
Medium
2470
removing stars from a string
Medium
2553
total cost to hire k workers
Medium
2636
maximum subsequence score
Medium