Gleb Koval f8f910b606 | ||
---|---|---|
.devcontainer | ||
arranging-coins | ||
best-time-to-buy-and-sell-stock | ||
best-time-to-buy-and-sell-stock-ii | ||
binary-search | ||
check-if-a-string-contains-all-binary-codes-of-size-k | ||
contains-duplicate | ||
count-vowel-substrings-of-a-string | ||
daily-temperatures | ||
divide-two-integers | ||
first-bad-version | ||
first-missing-positive | ||
first-unique-character-in-a-string | ||
intersection-of-two-arrays-ii | ||
linked-list-cycle | ||
longest-valid-parentheses | ||
maximum-path-quality-of-a-graph | ||
maximum-product-of-word-lengths | ||
maximum-subarray | ||
merge-sorted-array | ||
merge-two-sorted-lists | ||
middle-of-the-linked-list | ||
minimum-value-to-get-positive-step-by-step-sum | ||
missing-number | ||
move-zeroes | ||
multiply-strings | ||
n-queens | ||
number-of-1-bits | ||
number-of-valid-words-for-each-puzzle | ||
pascals-triangle | ||
product-of-array-except-self | ||
range-sum-query-2d-immutable | ||
ransom-note | ||
remove-duplicates-from-sorted-list | ||
remove-linked-list-elements | ||
remove-nth-node-from-end-of-list | ||
reshape-the-matrix | ||
reverse-linked-list | ||
reverse-string | ||
reverse-words-in-a-string-iii | ||
rotate-array | ||
rotate-image | ||
running-sum-of-1d-array | ||
search-a-2d-matrix | ||
search-insert-position | ||
single-number-iii | ||
squares-of-a-sorted-array | ||
string-to-integer-atoi | ||
sum-of-left-leaves | ||
tenth-line | ||
transpose-file | ||
transpose-matrix | ||
two-sum | ||
two-sum-ii-input-array-is-sorted | ||
unique-binary-search-trees | ||
valid-anagram | ||
valid-parentheses | ||
valid-sudoku | ||
word-frequency | ||
.gitignore | ||
README.md |
README.md
Gleb's leetcode solutions
These are most of my solutions to various leetcode problems.
They are by no means the best solutions, rather what I could come up with by myself.
In each solution I always aim for the lowest possible time complexity first; however, there may be multiple solutions for some problems to try to minimise space complexity instead.
Naming
Each folder is the name of the problem from its URL, so the problem can be accessed at:
https://leetcode.com/problems/<folder-name>/
All solutions for the various languages are named
sol.<ext>
, although generally I don't vary all that
much.
If I have written multiple solutions in a language,
they will be named sol_<description>.<ext>
.