| 1 |
Two Sum |
 |
Python |
two-sum.py |
| 2 |
Add Two Numbers |
 |
Python |
add-two-numbers.py |
| 3 |
Longest Substring Without Repeating Characters |
 |
Python |
longest-substring-without-repeating-characters.py |
| 4 |
Median of Two Sorted Arrays |
 |
Python |
median-of-two-sorted-arrays.py |
| 5 |
Longest Palindromic Substring |
 |
Python |
longest-palindromic-substring.py |
| 6 |
Zigzag Conversion |
 |
Python |
zigzag-conversion.py |
| 7 |
Reverse Integer |
 |
Python |
reverse-integer.py |
| 9 |
Palindrome Number |
 |
Python |
palindrome-number.py |
| 10 |
Regular Expression Matching |
 |
Python |
regular-expression-matching.py |
| 11 |
Container With Most Water |
 |
Python |
README.md |
| 12 |
Integer to Roman |
 |
Python |
integer-to-roman.py |
| 13 |
Roman to Integer |
 |
Python |
roman-to-integer.py |
| 14 |
Longest Common Prefix |
 |
Python |
longest-common-prefix.py |
| 15 |
3Sum |
 |
Python |
3sum.py |
| 16 |
3Sum Closest |
 |
Python |
3sum-closest.py |
| 17 |
Letter Combinations of a Phone Number |
 |
Python |
letter-combinations-of-a-phone-number.py |
| 18 |
4Sum |
 |
Python |
4sum.py |
| 19 |
Remove Nth Node From End of List |
 |
Python |
remove-nth-node-from-end-of-list.py |
| 20 |
Valid Parentheses |
 |
Python |
valid-parentheses.py |
| 21 |
Merge Two Sorted Lists |
 |
Python |
merge-two-sorted-lists.py |
| 22 |
Generate Parentheses |
 |
Python |
generate-parentheses.py |
| 23 |
Merge k Sorted Lists |
 |
Python |
merge-k-sorted-lists.py |
| 24 |
Swap Nodes in Pairs |
 |
Python |
swap-nodes-in-pairs.py |
| 25 |
Reverse Nodes in k-Group |
 |
Python |
reverse-nodes-in-k-group.py |
| 26 |
Remove Duplicates from Sorted Array |
 |
Python |
remove-duplicates-from-sorted-array.py |
| 27 |
Remove Element |
 |
Python |
remove-element.py |
| 28 |
Find the Index of the First Occurrence in a String |
 |
Python |
find-the-index-of-the-first-occurrence-in-a-string.py |
| 29 |
Divide Two Integers |
 |
Python |
divide-two-integers.py |
| 30 |
Substring with Concatenation of All Words |
 |
Python |
substring-with-concatenation-of-all-words.py |
| 31 |
Next Permutation |
 |
Python |
next-permutation.py |
| 32 |
Longest Valid Parentheses |
 |
Python |
longest-valid-parentheses.py |
| 33 |
Search in Rotated Sorted Array |
 |
Python |
search-in-rotated-sorted-array.py |
| 34 |
Find First and Last Position of Element in Sorted Array |
 |
Python |
find-first-and-last-position-of-element-in-sorted-array.py |
| 35 |
Search Insert Position |
 |
Python |
search-insert-position.py |
| 36 |
Valid Sudoku |
 |
Python |
valid-sudoku.py |
| 37 |
Sudoku Solver |
 |
Python |
sudoku-solver.py |
| 38 |
Count and Say |
 |
Python |
count-and-say.py |
| 39 |
Combination Sum |
 |
Python |
combination-sum.py |
| 40 |
Combination Sum II |
 |
Python |
combination-sum-ii.py |
| 41 |
First Missing Positive |
 |
Python |
first-missing-positive.py |
| 42 |
Trapping Rain Water |
 |
Python |
trapping-rain-water.py |
| 43 |
Multiply Strings |
 |
Python |
multiply-strings.py |
| 44 |
Wildcard Matching |
 |
Python |
wildcard-matching.py |
| 45 |
Jump Game II |
 |
Python |
jump-game-ii.py |
| 46 |
Permutations |
 |
Python |
README.md |
| 47 |
Permutations II |
 |
Python |
permutations-ii.py |
| 48 |
Rotate Image |
 |
Python |
rotate-image.py |
| 49 |
Group Anagrams |
 |
Python |
group-anagrams.py |
| 50 |
Pow(x, n) |
 |
Python |
powx-n.py |
| 51 |
N-Queens |
 |
Python |
n-queens.py |
| 52 |
N-Queens II |
 |
Python |
n-queens-ii.py |
| 53 |
Maximum Subarray |
 |
Python |
maximum-subarray.py |
| 54 |
Spiral Matrix |
 |
Python |
spiral-matrix.py |
| 55 |
Jump Game |
 |
Python |
jump-game.py |
| 56 |
Merge Intervals |
 |
Python |
merge-intervals.py |
| 57 |
Insert Interval |
 |
Python |
insert-interval.py |
| 58 |
Length of Last Word |
 |
Python |
length-of-last-word.py |
| 59 |
Spiral Matrix II |
 |
Python |
spiral-matrix-ii.py |
| 60 |
Permutation Sequence |
 |
Python |
permutation-sequence.py |
| 61 |
Rotate List |
 |
Python |
rotate-list.py |
| 62 |
Unique Paths |
 |
Python |
unique-paths.py |
| 63 |
Unique Paths II |
 |
Python |
unique-paths-ii.py |
| 64 |
Minimum Path Sum |
 |
Python |
minimum-path-sum.py |
| 65 |
Valid Number |
 |
Python |
valid-number.py |
| 66 |
Plus One |
 |
Python |
plus-one.py |
| 67 |
Add Binary |
 |
Python |
add-binary.py |
| 68 |
Text Justification |
 |
Python |
text-justification.py |
| 69 |
Sqrt(x) |
 |
Python |
sqrtx.py |
| 70 |
Climbing Stairs |
 |
Python |
climbing-stairs.py |
| 71 |
Simplify Path |
 |
Python |
simplify-path.py |
| 72 |
Edit Distance |
 |
Python |
edit-distance.py |
| 73 |
Set Matrix Zeroes |
 |
Python |
set-matrix-zeroes.py |
| 74 |
Search a 2D Matrix |
 |
Python |
search-a-2d-matrix.py |
| 75 |
Sort Colors |
 |
Python |
sort-colors.py |
| 76 |
Minimum Window Substring |
 |
Python |
minimum-window-substring.py |
| 77 |
Combinations |
 |
Python |
combinations.py |
| 78 |
Subsets |
 |
Python |
subsets.py |
| 79 |
Word Search |
 |
Python |
word-search.py |
| 80 |
Remove Duplicates from Sorted Array II |
 |
Python |
remove-duplicates-from-sorted-array-ii.py |
| 81 |
Search in Rotated Sorted Array II |
 |
Python |
search-in-rotated-sorted-array-ii.py |
| 82 |
Remove Duplicates from Sorted List II |
 |
Python |
remove-duplicates-from-sorted-list-ii.py |
| 83 |
Remove Duplicates from Sorted List |
 |
Python |
remove-duplicates-from-sorted-list.py |
| 115 |
Distinct Subsequences |
 |
Python |
distinct-subsequences.py |
| 121 |
Best Time to Buy and Sell Stock |
 |
Python |
best-time-to-buy-and-sell-stock.py |
| 287 |
Find the Duplicate Number |
 |
Python |
find-the-duplicate-number.py |
| 628 |
Maximum Product of Three Numbers |
 |
Python |
maximum-product-of-three-numbers.py |
| 864 |
Image Overlap |
 |
Python |
image-overlap.py |
| 909 |
Stone Game |
 |
Python |
stone-game.py |
| 977 |
Distinct Subsequences II |
 |
Python |
distinct-subsequences-ii.py |
| 1159 |
Smallest Subsequence of Distinct Characters |
 |
Python |
smallest-subsequence-of-distinct-characters.py |
| 1212 |
Sequential Digits |
 |
Python |
sequential-digits.py |
| 1240 |
Stone Game II |
 |
Python |
stone-game-ii.py |
| 1256 |
Rank Transform of an Array |
 |
Python |
rank-transform-of-an-array.py |
| 1386 |
Shift 2D Grid |
 |
Python |
shift-2d-grid.py |
| 1487 |
Cinema Seat Allocation |
 |
Python |
cinema-seat-allocation.py |
| 1522 |
Stone Game III |
 |
Python |
stone-game-iii.py |
| 1574 |
Maximum Product of Two Elements in an Array |
 |
Python |
maximum-product-of-two-elements-in-an-array.py |
| 1617 |
Stone Game IV |
 |
Python |
stone-game-iv.py |
| 1685 |
Stone Game V |
 |
Python |
stone-game-v.py |
| 2002 |
Stone Game VIII |
 |
Python |
stone-game-viii.py |
| 2039 |
Sum Game |
 |
Python |
sum-game.py |
| 2106 |
Find Greatest Common Divisor of Array |
 |
Python |
find-greatest-common-divisor-of-array.py |
| 2156 |
Stone Game IX |
 |
Python |
stone-game-ix.py |
| 2182 |
Find the Minimum and Maximum Number of Nodes Between Critical Points |
 |
Python |
find-the-minimum-and-maximum-number-of-nodes-between-critical-points.py |
| 2212 |
Removing Minimum and Maximum From Array |
 |
Python |
removing-minimum-and-maximum-from-array.py |
| 2319 |
Longest Substring of One Repeating Character |
 |
Python |
longest-substring-of-one-repeating-character.py |
| 2347 |
Count Nodes Equal to Average of Subtree |
 |
Python |
count-nodes-equal-to-average-of-subtree.py |
| 2582 |
Minimum Score of a Path Between Two Cities |
 |
Python |
minimum-score-of-a-path-between-two-cities.py |
| 2793 |
Count the Number of Complete Components |
 |
Python |
count-the-number-of-complete-components.py |
| 2914 |
Find the Safest Path in a Grid |
 |
Python |
find-the-safest-path-in-a-grid.py |
| 3150 |
Shortest and Lexicographically Smallest Beautiful String |
 |
Python |
shortest-and-lexicographically-smallest-beautiful-string.py |
| 3219 |
Make Lexicographically Smallest Array by Swapping Elements |
 |
Python |
make-lexicographically-smallest-array-by-swapping-elements.py |
| 3225 |
Length of Longest Subarray With at Most K Frequency |
 |
Python |
length-of-longest-subarray-with-at-most-k-frequency.py |
| 3236 |
Smallest Missing Integer Greater Than Sequential Prefix Sum |
 |
Python |
README.md |
| 3275 |
Minimum Number of Pushes to Type Word I |
 |
Python |
minimum-number-of-pushes-to-type-word-i.py |
| 3276 |
Minimum Number of Pushes to Type Word II |
 |
Python |
minimum-number-of-pushes-to-type-word-ii.py |
| 3349 |
Maximum Length Substring With Two Occurrences |
 |
Python |
maximum-length-substring-with-two-occurrences.py |
| 3375 |
Kth Smallest Amount With Single Denomination Combination |
 |
Python |
kth-smallest-amount-with-single-denomination-combination.py |
| 3558 |
Find a Safe Walk Through a Grid |
 |
Python |
find-a-safe-walk-through-a-grid.py |
| 3561 |
Remove Methods From Project |
 |
Python |
remove-methods-from-project.py |
| 3562 |
Maximum Score of Non-overlapping Intervals |
 |
Python |
maximum-score-of-non-overlapping-intervals.py |
| 3583 |
Sorted GCD Pair Queries |
 |
Python |
sorted-gcd-pair-queries.py |
| 3584 |
Find the Lexicographically Smallest Valid Sequence |
 |
Python |
find-the-lexicographically-smallest-valid-sequence.py |
| 3608 |
Find the Number of Subsequences With Equal GCD |
 |
Python |
find-the-number-of-subsequences-with-equal-gcd.py |
| 3626 |
Smallest Divisible Digit Product I |
 |
Python |
smallest-divisible-digit-product-i.py |
| 3635 |
Smallest Divisible Digit Product II |
 |
Python |
smallest-divisible-digit-product-ii.py |
| 3705 |
Find the Largest Almost Missing Integer |
 |
Python |
find-the-largest-almost-missing-integer.py |
| 3799 |
Unique 3-Digit Even Numbers |
 |
Python |
unique-3-digit-even-numbers.py |
| 3804 |
Maximize Active Section with Trade II |
 |
Python |
maximize-active-section-with-trade-ii.py |
| 3805 |
Maximize Active Section with Trade I |
 |
Python |
maximize-active-section-with-trade-i.py |
| 3812 |
Smallest Palindromic Rearrangement I |
 |
Python |
smallest-palindromic-rearrangement-i.py |
| 3813 |
Smallest Palindromic Rearrangement II |
 |
Python |
smallest-palindromic-rearrangement-ii.py |
| 3820 |
Number of Unique XOR Triplets II |
 |
Python |
number-of-unique-xor-triplets-ii.py |
| 3824 |
Number of Unique XOR Triplets I |
 |
Python |
number-of-unique-xor-triplets-i.py |
| 3838 |
Path Existence Queries in a Graph I |
 |
Python |
path-existence-queries-in-a-graph-i.py |
| 3852 |
Path Existence Queries in a Graph II |
 |
Python |
README.md |
| 3859 |
Maximum Product of Two Digits |
 |
Python |
maximum-product-of-two-digits.py |
| 3870 |
Minimum Moves to Clean the Classroom |
 |
Python |
minimum-moves-to-clean-the-classroom.py |
| 3918 |
Check Divisibility by Digit Sum and Product |
 |
Python |
check-divisibility-by-digit-sum-and-product.py |
| 3995 |
GCD of Odd and Even Sums |
 |
Python |
gcd-of-odd-and-even-sums.py |
| 4020 |
Lexicographically Smallest Permutation Greater Than Target |
 |
Python |
lexicographically-smallest-permutation-greater-than-target.py |
| 4033 |
Longest Subsequence With Non-Zero Bitwise XOR |
 |
Python |
longest-subsequence-with-non-zero-bitwise-xor.py |
| 4037 |
Lexicographically Smallest Palindromic Permutation Greater Than Target |
 |
Python |
lexicographically-smallest-palindromic-permutation-greater-than-target.py |
| 4080 |
Smallest Missing Multiple of K |
 |
Python |
smallest-missing-multiple-of-k.py |
| 4107 |
Find Missing Elements |
 |
Python |
find-missing-elements.py |
| 4135 |
Concatenate Non-Zero Digits and Multiply by Sum I |
 |
Python |
concatenate-non-zero-digits-and-multiply-by-sum-i.py |
| 4136 |
Concatenate Non-Zero Digits and Multiply by Sum II |
 |
Python |
concatenate-non-zero-digits-and-multiply-by-sum-ii.py |
| 4203 |
Count of Unfinished Tasks After Each Shift |
 |
Python |
count-of-unfinished-tasks-after-each-shift.py |
| 4242 |
Sum of GCD of Formed Pairs |
 |
Python |
sum-of-gcd-of-formed-pairs.py |
| 4245 |
Count Commas in Range |
 |
Python |
count-commas-in-range.py |
| 4248 |
Count Commas in Range II |
 |
Python |
README.md |
| 4256 |
Construct Uniform Parity Array I |
 |
Python |
construct-uniform-parity-array-i.py |
| 4258 |
Construct Uniform Parity Array II |
 |
Python |
construct-uniform-parity-array-ii.py |
| 4284 |
Smallest Stable Index I |
 |
Python |
smallest-stable-index-i.py |
| 4285 |
Smallest Stable Index II |
 |
Python |
smallest-stable-index-ii.py |
| 4323 |
Count Subarrays With Even Odd Ratio I |
 |
Python |
count-subarrays-with-even-odd-ratio-i.py |
| 4324 |
Count Subarrays With Even Odd Ratio II |
 |
Python |
count-subarrays-with-even-odd-ratio-ii.py |
| 4371 |
Maximize Pair Strength Using GCD |
 |
Python |
maximize-pair-strength-using-gcd.py |