Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/crvlwanek/leetcode

A collection of solutions to LeetCode problems
https://github.com/crvlwanek/leetcode

algorithms binary-search binary-trees cpp data-structures dynamic-programming leetcode linked-list math python recursion trie typescript

Last synced: 5 days ago
JSON representation

A collection of solutions to LeetCode problems

Awesome Lists containing this project

README

        

# LeetCode Problems

This is a collection of solutions I have written to various LeetCode problems. Below you can find a listing of each problem with links to the problem description, as well the solutions.

## Problems

[35. Search Insert Position](https://leetcode.com/problems/search-insert-position/)
[36. Valid Sudoku](https://leetcode.com/problems/valid-sudoku/) -- [Python](https://github.com/crvlwanek/leetcode/blob/master/0036.%20Valid%20Sudoku/validsudoku.py)
[91. Decode Ways](https://leetcode.com/problems/decode-ways/) -- [Python](https://github.com/crvlwanek/leetcode/blob/master/0091.%20Decode%20Ways/decodeways.py), [C++](https://github.com/crvlwanek/leetcode/blob/master/0091.%20Decode%20Ways/decodeways.cpp)
[151. Reverse Words in a String](https://leetcode.com/problems/reverse-words-in-a-string/submissions/) -- [Python](https://github.com/crvlwanek/leetcode/blob/master/0151.%20Reverse%20Words%20in%20a%20String/reverse_words.py), [Typescript](https://github.com/crvlwanek/leetcode/blob/master/0151.%20Reverse%20Words%20in%20a%20String/reverse_words.ts)
[153. Find Minimum in Rotated Sorted Array](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/) -- [Python](https://github.com/crvlwanek/leetcode/tree/master/0153.%20Find%20Minimum%20in%20Rotated%20Sorted%20Array)
[155. Min Stack](https://leetcode.com/problems/min-stack/) -- [Python](https://github.com/crvlwanek/leetcode/blob/master/0155.%20Min%20Stack/min_stack.py)
[206. Reverse Linked List](https://leetcode.com/problems/reverse-linked-list/) -- [Python](https://github.com/crvlwanek/leetcode/blob/master/0206.%20Reverse%20Linked%20List/reverse_linked_list.py)
[208. Implement Trie (Prefix Tree)](https://leetcode.com/problems/implement-trie-prefix-tree/) - [Python](https://github.com/crvlwanek/leetcode/blob/master/0208.%20Implement%20Trie%20(Prefix%20Tree)/trie.py)
[278. First Bad Version](https://leetcode.com/problems/first-bad-version/) -- [Python](https://github.com/crvlwanek/leetcode/blob/master/0278.%20First%20Bad%20Version/first_bad_version.py)
[331. Verify Preorder Serialization of a Binary Tree](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/) -- [Python](https://github.com/crvlwanek/leetcode/blob/master/0331.%20Verify%20Preorder%20Serialization%20of%20a%20Binary%20Tree/verify-preorder-serialization-of-a-binary-tree.py)
[350. Intersection of Two Arrays II](https://leetcode.com/problems/intersection-of-two-arrays-ii/) -- [Python](https://github.com/crvlwanek/leetcode/blob/master/0350.%20Intersection%20of%20Two%20Arrays%20II/intersection_of_two_arrays_II.py)
[404. Sum of Left Leaves](https://leetcode.com/problems/sum-of-left-leaves/) -- [Python](https://github.com/crvlwanek/leetcode/blob/master/0404.%20Sum%20of%20Left%20Leaves/sum_of_left_leaves.py)
[485. Max Consecutive Ones](https://leetcode.com/problems/max-consecutive-ones/) -- [Python](https://github.com/crvlwanek/leetcode/blob/master/0485.%20Max%20Consecutive%20Ones/max_consecutive_ones.py)
[496. Next Greater Element I](https://leetcode.com/problems/next-greater-element-i/) -- [Python](https://github.com/crvlwanek/leetcode/blob/master/0496.%20Next%20Greater%20Element%20I/nextgreaterelement.py)
[522. Longest Uncommon Subsequence II](https://leetcode.com/problems/longest-uncommon-subsequence-ii/) -- [Python](https://github.com/crvlwanek/leetcode/blob/master/0522.%20Longest%20Uncommon%20Subsequence%20II/longest-uncommon-subsequence-ii.py)
[537. Complex Number Multiplication](https://leetcode.com/problems/complex-number-multiplication) -- [Python](https://github.com/crvlwanek/leetcode/blob/master/0537.%20Complex%20Number%20Multiplication/complex-number-multiplication.py), [TypeScript](https://github.com/crvlwanek/leetcode/blob/master/0537.%20Complex%20Number%20Multiplication/complex-number-multiplication.ts)
[565. Array Nesting](https://leetcode.com/problems/array-nesting/) -- [Python](https://github.com/crvlwanek/leetcode/blob/master/0565.%20Array%20Nesting/arraynesting.py)
[598. Range Addition II](https://leetcode.com/problems/range-addition-ii/) -- [Python](https://github.com/crvlwanek/leetcode/blob/master/0598.%20Range%20Addition%20II/range-addition-ii.py)
[633. Sum of Square Numbers](https://leetcode.com/problems/sum-of-square-numbers/) -- [Python](https://github.com/crvlwanek/leetcode/blob/master/0633.%20Sum%20of%20Square%20Numbers/sumofsquarenumbers.py), [TypeScript](https://github.com/crvlwanek/leetcode/blob/master/0633.%20Sum%20of%20Square%20Numbers/sumofsquarenumbers.ts), [C++](https://github.com/crvlwanek/leetcode/blob/master/0633.%20Sum%20of%20Square%20Numbers/sumofsquares.cpp)
[653. Two Sum IV - Input is a BST](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/) -- [Python](https://github.com/crvlwanek/leetcode/blob/master/0653.%20Two%20Sum%20IV%20-%20Input%20is%20a%20BST/twosumfour.py)
[668. Kth Smallest Number in Multiplication Table](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/) -- [Python](https://github.com/crvlwanek/leetcode/blob/master/0668.%20Kth%20Smallest%20Number%20in%20Multiplication%20Table/solution.py)
[704. Binary Search](https://leetcode.com/problems/binary-search) - [Python](https://github.com/crvlwanek/leetcode/blob/master/0704.%20Binary%20Search/binary_search.py)
[764. Largest Plus Sign](https://leetcode.com/problems/largest-plus-sign/) -- [Python](https://github.com/crvlwanek/leetcode/blob/master/0764.%20Largest%20Plus%20Sign/largest_plus_sign.py)
[848. Shifting Letters](https://leetcode.com/problems/shifting-letters/) -- [Python](https://github.com/crvlwanek/leetcode/blob/master/0848.%20Shifting%20Letters/shifting_letters.py), [TypeScript](https://github.com/crvlwanek/leetcode/blob/master/0848.%20Shifting%20Letters/shifting_letters.ts)
[917. Reverse Only Letters](https://leetcode.com/problems/reverse-only-letters/) -- [Python](https://github.com/crvlwanek/leetcode/blob/master/0917.%20Reverse%20Only%20Letters/reverse_only_letters.py)
[929. Unique Email Addresses](https://leetcode.com/problems/unique-email-addresses/) -- [Python](https://github.com/crvlwanek/leetcode/blob/master/0929.%20Unique%20Email%20Addresses/unique_email_addresses.py)
[977. Squares of a Sorted Array](https://leetcode.com/problems/squares-of-a-sorted-array/) -- [Python](https://github.com/crvlwanek/leetcode/blob/master/0977.%20Squares%20of%20a%20Sorted%20Array/sorted_squares.py)
[978. Longest Turbulent Subarray](https://leetcode.com/problems/longest-turbulent-subarray/) -- [Python](https://github.com/crvlwanek/leetcode/blob/master/0978.%20Longest%20Turbulent%20Subarray/max_turbulence_size.py)
[1189. Maximum Number of Balloons](https://leetcode.com/problems/maximum-number-of-balloons/) -- [Python](https://github.com/crvlwanek/leetcode/blob/master/1189.%20Maximum%20Number%20of%20Balloons/max_balloons.py)
[1339. Maximum Product of Splitted Binary Tree](https://leetcode.com/problems/maximum-product-of-splitted-binary-tree/) -- [Python](https://github.com/crvlwanek/leetcode/blob/master/1339.%20Maximum%20Product%20of%20Splitted%20Binary%20Tree/maximum_product.py)
[1413. Minimum Value to Get Positive Step by Step Sum](https://leetcode.com/problems/minimum-value-to-get-positive-step-by-step-sum/) -- [Python](https://github.com/crvlwanek/leetcode/blob/master/1413.%20Minimum%20Value%20to%20Get%20Positive%20Step%20by%20Step%20Sum/solution.py), [C++](https://github.com/crvlwanek/leetcode/blob/master/1413.%20Minimum%20Value%20to%20Get%20Positive%20Step%20by%20Step%20Sum/solution.cpp)