Skip to content

ronydas12345/LeetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode

My solutions for LeetCode problems in C++ and Python

This will be added to over time.
Solutions are added automatically with LeetHub 2.0.
Contact me if something is missing or you would like me to add something.


LeetCode Topics

Array

0001-two-sum
0011-container-with-most-water
0014-longest-common-prefix
0033-search-in-rotated-sorted-array
0049-group-anagrams
0053-maximum-subarray
0108-convert-sorted-array-to-binary-search-tree
0118-pascals-triangle
0122-best-time-to-buy-and-sell-stock-ii
0134-gas-station
0167-two-sum-ii-input-array-is-sorted
0200-number-of-islands
0330-patching-array
0463-island-perimeter
0733-flood-fill
0747-min-cost-climbing-stairs
0772-construct-quad-tree
0979-di-string-match
1018-largest-perimeter-triangle
3143-longest-unequal-adjacent-groups-subsequence-i
3773-minimum-pair-removal-to-sort-array-i
4112-maximize-expression-of-three-elements

Hash Table

0001-two-sum
0030-substring-with-concatenation-of-all-words
0049-group-anagrams
3773-minimum-pair-removal-to-sort-array-i

Linked List

0002-add-two-numbers
3773-minimum-pair-removal-to-sort-array-i

Math

0002-add-two-numbers
0070-climbing-stairs
1013-fibonacci-number
1018-largest-perimeter-triangle
4136-concatenate-non-zero-digits-and-multiply-by-sum-ii

Recursion

0002-add-two-numbers
1013-fibonacci-number

String

0005-longest-palindromic-substring
0014-longest-common-prefix
0030-substring-with-concatenation-of-all-words
0049-group-anagrams
0257-binary-tree-paths
0392-is-subsequence
0979-di-string-match
1250-longest-common-subsequence
3143-longest-unequal-adjacent-groups-subsequence-i
4136-concatenate-non-zero-digits-and-multiply-by-sum-ii

Dynamic Programming

0005-longest-palindromic-substring
0053-maximum-subarray
0070-climbing-stairs
0118-pascals-triangle
0122-best-time-to-buy-and-sell-stock-ii
0392-is-subsequence
0747-min-cost-climbing-stairs
1013-fibonacci-number
1250-longest-common-subsequence
3143-longest-unequal-adjacent-groups-subsequence-i

Greedy

0011-container-with-most-water
0122-best-time-to-buy-and-sell-stock-ii
0134-gas-station
0330-patching-array
0979-di-string-match
1018-largest-perimeter-triangle
3143-longest-unequal-adjacent-groups-subsequence-i
4112-maximize-expression-of-three-elements

Two Pointers

0005-longest-palindromic-substring
0011-container-with-most-water
0167-two-sum-ii-input-array-is-sorted
0392-is-subsequence
0979-di-string-match

Trie

0014-longest-common-prefix

Sliding Window

0030-substring-with-concatenation-of-all-words

Binary Search

0033-search-in-rotated-sorted-array
0167-two-sum-ii-input-array-is-sorted
0222-count-complete-tree-nodes

Sorting

0049-group-anagrams
1018-largest-perimeter-triangle
4112-maximize-expression-of-three-elements

Memoization

0070-climbing-stairs
1013-fibonacci-number

Stack

0094-binary-tree-inorder-traversal
0145-binary-tree-postorder-traversal

Tree

0094-binary-tree-inorder-traversal
0108-convert-sorted-array-to-binary-search-tree
0110-balanced-binary-tree
0145-binary-tree-postorder-traversal
0222-count-complete-tree-nodes
0226-invert-binary-tree
0257-binary-tree-paths
0404-sum-of-left-leaves
0501-find-mode-in-binary-search-tree
0530-minimum-absolute-difference-in-bst
0543-diameter-of-binary-tree
0563-binary-tree-tilt
0572-subtree-of-another-tree
0772-construct-quad-tree
0774-maximum-depth-of-n-ary-tree
2568-minimum-fuel-cost-to-report-to-the-capital

Depth-First Search

0094-binary-tree-inorder-traversal
0110-balanced-binary-tree
0145-binary-tree-postorder-traversal
0200-number-of-islands
0226-invert-binary-tree
0257-binary-tree-paths
0404-sum-of-left-leaves
0463-island-perimeter
0501-find-mode-in-binary-search-tree
0530-minimum-absolute-difference-in-bst
0543-diameter-of-binary-tree
0563-binary-tree-tilt
0572-subtree-of-another-tree
0733-flood-fill
0774-maximum-depth-of-n-ary-tree
2568-minimum-fuel-cost-to-report-to-the-capital

Binary Tree

0094-binary-tree-inorder-traversal
0108-convert-sorted-array-to-binary-search-tree
0110-balanced-binary-tree
0145-binary-tree-postorder-traversal
0222-count-complete-tree-nodes
0226-invert-binary-tree
0257-binary-tree-paths
0404-sum-of-left-leaves
0501-find-mode-in-binary-search-tree
0530-minimum-absolute-difference-in-bst
0543-diameter-of-binary-tree
0563-binary-tree-tilt
0572-subtree-of-another-tree

Breadth-First Search

0200-number-of-islands
0226-invert-binary-tree
0404-sum-of-left-leaves
0463-island-perimeter
0530-minimum-absolute-difference-in-bst
0733-flood-fill
0774-maximum-depth-of-n-ary-tree
2568-minimum-fuel-cost-to-report-to-the-capital

Union-Find

0200-number-of-islands

Matrix

0200-number-of-islands
0463-island-perimeter
0733-flood-fill
0772-construct-quad-tree

Backtracking

0257-binary-tree-paths

Divide and Conquer

0053-maximum-subarray
0108-convert-sorted-array-to-binary-search-tree
0772-construct-quad-tree

Graph Theory

2568-minimum-fuel-cost-to-report-to-the-capital

Heap (Priority Queue)

3773-minimum-pair-removal-to-sort-array-i

Simulation

3773-minimum-pair-removal-to-sort-array-i

Doubly-Linked List

3773-minimum-pair-removal-to-sort-array-i

Ordered Set

3773-minimum-pair-removal-to-sort-array-i

Enumeration

4112-maximize-expression-of-three-elements

Prefix Sum

4136-concatenate-non-zero-digits-and-multiply-by-sum-ii

Database

0185-department-top-three-salaries
0585-investments-in-2016

Binary Search Tree

0108-convert-sorted-array-to-binary-search-tree
0501-find-mode-in-binary-search-tree
0530-minimum-absolute-difference-in-bst

Bit Manipulation

0222-count-complete-tree-nodes

String Matching

0572-subtree-of-another-tree

Hash Function

0572-subtree-of-another-tree

About

My Python solutions for LeetCode problems

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors