/Leetcode-Solutions

Collection of LeetCode questions to ace the coding interview! - Created using [LeetHub](https://github.com/QasimWani/LeetHub)

Primary LanguagePython

Leetcode-Solutions

Collection of LeetCode questions to ace the coding interview! - Created using LeetHub

Tree

0094-binary-tree-inorder-traversal
0110-balanced-binary-tree
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal

Depth-First Search

0094-binary-tree-inorder-traversal
0110-balanced-binary-tree
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal

Binary Tree

0094-binary-tree-inorder-traversal
0110-balanced-binary-tree
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal

String

1904-second-largest-digit-in-a-string
2337-remove-digit-from-number-to-maximize-result

Greedy

2337-remove-digit-from-number-to-maximize-result

Enumeration

2337-remove-digit-from-number-to-maximize-result

Hash Table

0073-set-matrix-zeroes
1482-how-many-numbers-are-smaller-than-the-current-number
1510-find-lucky-integer-in-an-array
1904-second-largest-digit-in-a-string

Array

0026-remove-duplicates-from-sorted-array
0073-set-matrix-zeroes
1482-how-many-numbers-are-smaller-than-the-current-number
1510-find-lucky-integer-in-an-array
2058-concatenation-of-array

Two Pointers

0026-remove-duplicates-from-sorted-array

Stack

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

Sorting

1482-how-many-numbers-are-smaller-than-the-current-number

Counting

1482-how-many-numbers-are-smaller-than-the-current-number
1510-find-lucky-integer-in-an-array

Simulation

2058-concatenation-of-array

Matrix

0073-set-matrix-zeroes

LeetCode Topics

Array

0001-two-sum
0015-3sum
0026-remove-duplicates-from-sorted-array
0049-group-anagrams
0074-search-a-2d-matrix
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0128-longest-consecutive-sequence
0152-maximum-product-subarray
0167-two-sum-ii-input-array-is-sorted
0169-majority-element
0198-house-robber
0217-contains-duplicate
0219-contains-duplicate-ii
0229-majority-element-ii
0643-maximum-average-subarray-i
0917-boats-to-save-people
1408-find-the-smallest-divisor-given-a-threshold
2232-adding-spaces-to-a-string
2306-create-binary-tree-from-descriptions
2436-make-array-zero-by-subtracting-equal-amounts
2977-check-if-a-string-is-an-acronym-of-words

Binary Search

0074-search-a-2d-matrix
0167-two-sum-ii-input-array-is-sorted
0222-count-complete-tree-nodes
0374-guess-number-higher-or-lower
1408-find-the-smallest-divisor-given-a-threshold

Matrix

0074-search-a-2d-matrix

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0049-group-anagrams
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0128-longest-consecutive-sequence
0141-linked-list-cycle
0169-majority-element
0217-contains-duplicate
0219-contains-duplicate-ii
0229-majority-element-ii
0242-valid-anagram
0387-first-unique-character-in-a-string
0438-find-all-anagrams-in-a-string
2306-create-binary-tree-from-descriptions
2436-make-array-zero-by-subtracting-equal-amounts

Sorting

0015-3sum
0049-group-anagrams
0148-sort-list
0169-majority-element
0217-contains-duplicate
0229-majority-element-ii
0242-valid-anagram
0917-boats-to-save-people
2436-make-array-zero-by-subtracting-equal-amounts

Union Find

0128-longest-consecutive-sequence

String

0003-longest-substring-without-repeating-characters
0049-group-anagrams
0091-decode-ways
0125-valid-palindrome
0242-valid-anagram
0344-reverse-string
0387-first-unique-character-in-a-string
0402-remove-k-digits
0438-find-all-anagrams-in-a-string
0680-valid-palindrome-ii
2232-adding-spaces-to-a-string
2977-check-if-a-string-is-an-acronym-of-words

Stack

0402-remove-k-digits

Greedy

0402-remove-k-digits
0680-valid-palindrome-ii
0917-boats-to-save-people
2436-make-array-zero-by-subtracting-equal-amounts

Monotonic Stack

0402-remove-k-digits

Queue

0387-first-unique-character-in-a-string
0969-number-of-recent-calls

Counting

0169-majority-element
0229-majority-element-ii
0387-first-unique-character-in-a-string

Sliding Window

0003-longest-substring-without-repeating-characters
0219-contains-duplicate-ii
0438-find-all-anagrams-in-a-string
0643-maximum-average-subarray-i

Two Pointers

0015-3sum
0026-remove-duplicates-from-sorted-array
0125-valid-palindrome
0141-linked-list-cycle
0148-sort-list
0167-two-sum-ii-input-array-is-sorted
0344-reverse-string
0680-valid-palindrome-ii
0917-boats-to-save-people
2232-adding-spaces-to-a-string

Heap (Priority Queue)

2436-make-array-zero-by-subtracting-equal-amounts

Simulation

2232-adding-spaces-to-a-string
2299-merge-nodes-in-between-zeros
2436-make-array-zero-by-subtracting-equal-amounts

Linked List

0021-merge-two-sorted-lists
0025-reverse-nodes-in-k-group
0083-remove-duplicates-from-sorted-list
0141-linked-list-cycle
0148-sort-list
0206-reverse-linked-list
0237-delete-node-in-a-linked-list
1765-merge-in-between-linked-lists
2299-merge-nodes-in-between-zeros
2903-insert-greatest-common-divisors-in-linked-list

Recursion

0021-merge-two-sorted-lists
0025-reverse-nodes-in-k-group
0206-reverse-linked-list

Tree

0098-validate-binary-search-tree
0100-same-tree
0102-binary-tree-level-order-traversal
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0199-binary-tree-right-side-view
0222-count-complete-tree-nodes
0226-invert-binary-tree
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree
2306-create-binary-tree-from-descriptions

Binary Tree

0098-validate-binary-search-tree
0100-same-tree
0102-binary-tree-level-order-traversal
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0199-binary-tree-right-side-view
0222-count-complete-tree-nodes
0226-invert-binary-tree
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree
2306-create-binary-tree-from-descriptions

Depth-First Search

0098-validate-binary-search-tree
0100-same-tree
0199-binary-tree-right-side-view
0207-course-schedule
0226-invert-binary-tree
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree

Breadth-First Search

0100-same-tree
0102-binary-tree-level-order-traversal
0199-binary-tree-right-side-view
0207-course-schedule
0226-invert-binary-tree

Binary Search Tree

0098-validate-binary-search-tree
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree

Divide and Conquer

0105-construct-binary-tree-from-preorder-and-inorder-traversal
0148-sort-list
0169-majority-element

Math

0070-climbing-stairs
2903-insert-greatest-common-divisors-in-linked-list

Dynamic Programming

0070-climbing-stairs
0091-decode-ways
0152-maximum-product-subarray
0198-house-robber

Memoization

0070-climbing-stairs

Number Theory

2903-insert-greatest-common-divisors-in-linked-list

Design

0969-number-of-recent-calls

Data Stream

0969-number-of-recent-calls

Merge Sort

0148-sort-list

Interactive

0374-guess-number-higher-or-lower

Bit Manipulation

0222-count-complete-tree-nodes

Graph

0207-course-schedule

Topological Sort

0207-course-schedule