My answers for leetcode questions
Go to file
Gleb Koval 2a7ec7e34b A few problems 2022-05-29 20:21:38 +01:00
.devcontainer A few problems 2022-05-29 20:21:38 +01:00
arranging-coins arranging-coins 2021-11-05 15:40:01 +00:00
best-time-to-buy-and-sell-stock best-time-to-buy-and-sell-stock 2021-11-05 12:52:48 +00:00
best-time-to-buy-and-sell-stock-ii best-time-to-buy-and-sell-stock-ii 2021-11-10 14:44:37 +00:00
binary-search binary-search 2021-11-05 14:54:48 +00:00
contains-duplicate A few problems 2022-05-29 20:21:38 +01:00
count-vowel-substrings-of-a-string count-vowel-substrings-of-a-string 2021-11-09 16:40:44 +00:00
daily-temperatures A few problems 2022-05-29 20:21:38 +01:00
first-bad-version first-bad-version 2021-11-05 15:09:36 +00:00
first-missing-positive A few problems 2022-05-29 20:21:38 +01:00
longest-valid-parentheses A few problems 2022-05-29 20:21:38 +01:00
maximum-path-quality-of-a-graph maximum-path-quality-of-a-graph 2021-11-10 14:32:05 +00:00
maximum-product-of-word-lengths A few problems 2022-05-29 20:21:38 +01:00
maximum-subarray A few problems 2022-05-29 20:21:38 +01:00
merge-sorted-array A few problems 2022-05-29 20:21:38 +01:00
middle-of-the-linked-list middle-of-the-linked-list 2021-11-09 15:56:54 +00:00
minimum-value-to-get-positive-step-by-step-sum minimum-value-to-get-positive-step-by-step-sum 2021-11-12 09:53:39 +00:00
missing-number A few problems 2022-05-29 20:21:38 +01:00
move-zeroes move-zeroes 2021-11-07 20:12:20 +00:00
multiply-strings removed main() from multiply-strings 2021-11-07 21:12:30 +00:00
number-of-1-bits A few problems 2022-05-29 20:21:38 +01:00
number-of-valid-words-for-each-puzzle number-of-valid-words-for-each-puzzle 2021-11-09 02:07:53 +00:00
product-of-array-except-self product-of-array-except-self 2021-11-05 12:53:13 +00:00
remove-linked-list-elements remove-linked-list-elements 2021-11-12 09:41:28 +00:00
remove-nth-node-from-end-of-list remove-nth-node-from-end-of-list 2021-11-09 16:10:49 +00:00
reverse-string reverse-string 2021-11-08 13:00:57 +00:00
reverse-words-in-a-string-iii reverse-words-in-a-string-iii 2021-11-08 19:34:36 +00:00
rotate-array rotate-array 2021-11-07 20:06:26 +00:00
rotate-image A few problems 2022-05-29 20:21:38 +01:00
search-insert-position search-insert-position 2021-11-05 15:18:31 +00:00
single-number-iii single-number-iii 2021-11-10 15:12:32 +00:00
squares-of-a-sorted-array squares-of-a-sorted-array 2021-11-07 19:45:34 +00:00
string-to-integer-atoi string-to-integer-atoi 2021-11-09 11:42:53 +00:00
sum-of-left-leaves sum-of-left-leaves 2021-11-05 16:02:35 +00:00
tenth-line A few problems 2022-05-29 20:21:38 +01:00
transpose-file A few problems 2022-05-29 20:21:38 +01:00
two-sum A few problems 2022-05-29 20:21:38 +01:00
two-sum-ii-input-array-is-sorted two-sum-ii-input-array-is-sorted 2021-11-07 20:18:20 +00:00
unique-binary-search-trees unique-binary-search-trees 2021-11-08 12:56:51 +00:00
word-frequency A few problems 2022-05-29 20:21:38 +01:00
.gitignore A few problems 2022-05-29 20:21:38 +01:00
README.md naming section in README.md 2021-11-05 12:52:08 +00:00

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>/