Skip to content

Sebastian-Dante/leetcode-solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A collection of LeetCode questions to ace the coding interview! - Created using LeetHub v2

LeetCode Topics

Array

0026-remove-duplicates-from-sorted-array
0027-remove-element
0045-jump-game-ii
0055-jump-game
0080-remove-duplicates-from-sorted-array-ii
0088-merge-sorted-array
0121-best-time-to-buy-and-sell-stock
0122-best-time-to-buy-and-sell-stock-ii
0169-majority-element
0189-rotate-array
0274-h-index
0380-insert-delete-getrandom-o1
0952-word-subsets
1364-tuple-with-same-product
1477-product-of-the-last-k-numbers
1524-string-matching-in-an-array
1603-running-sum-of-1d-array
1878-check-if-array-is-sorted-and-rotated
1927-maximum-ascending-subarray-sum
2292-counting-words-with-a-given-prefix
2448-count-number-of-bad-pairs
2473-max-sum-of-a-pair-with-equal-sum-of-digits
2564-most-profitable-path-in-a-tree
3309-count-prefix-and-suffix-pairs-i
3332-minimum-operations-to-exceed-threshold-value-ii
3372-longest-strictly-increasing-or-strictly-decreasing-subarray
3429-special-array-i
3434-find-the-number-of-distinct-colors-among-the-balls

String

0952-word-subsets
1160-letter-tile-possibilities
1516-the-k-th-lexicographical-string-of-all-happy-strings-of-length-n
1524-string-matching-in-an-array
1915-check-if-one-string-swap-can-make-strings-equal
2021-remove-all-occurrences-of-a-substring
2140-longest-subsequence-repeated-k-times
2221-check-if-a-parentheses-string-can-be-valid
2292-counting-words-with-a-given-prefix
2395-longest-binary-subsequence-less-than-or-equal-to-k
2456-construct-smallest-number-from-di-string
3309-count-prefix-and-suffix-pairs-i
3617-find-the-original-typed-string-i
3618-find-the-original-typed-string-ii

String Matching

1524-string-matching-in-an-array
2292-counting-words-with-a-given-prefix
3309-count-prefix-and-suffix-pairs-i

Trie

3309-count-prefix-and-suffix-pairs-i

Rolling Hash

3309-count-prefix-and-suffix-pairs-i

Hash Function

3309-count-prefix-and-suffix-pairs-i

Depth-First Search

0684-redundant-connection
1387-find-elements-in-a-contaminated-binary-tree
2564-most-profitable-path-in-a-tree

Breadth-First Search

0684-redundant-connection
1387-find-elements-in-a-contaminated-binary-tree
2564-most-profitable-path-in-a-tree
2583-divide-nodes-into-the-maximum-number-of-groups

Union Find

0684-redundant-connection
2583-divide-nodes-into-the-maximum-number-of-groups

Graph

0684-redundant-connection
2564-most-profitable-path-in-a-tree
2583-divide-nodes-into-the-maximum-number-of-groups

Hash Table

0169-majority-element
0380-insert-delete-getrandom-o1
0952-word-subsets
1160-letter-tile-possibilities
1364-tuple-with-same-product
1387-find-elements-in-a-contaminated-binary-tree
1915-check-if-one-string-swap-can-make-strings-equal
2434-design-a-number-container-system
2448-count-number-of-bad-pairs
2473-max-sum-of-a-pair-with-equal-sum-of-digits
3434-find-the-number-of-distinct-colors-among-the-balls

Stack

2021-remove-all-occurrences-of-a-substring
2221-check-if-a-parentheses-string-can-be-valid
2456-construct-smallest-number-from-di-string

Greedy

0045-jump-game-ii
0055-jump-game
0122-best-time-to-buy-and-sell-stock-ii
2140-longest-subsequence-repeated-k-times
2221-check-if-a-parentheses-string-can-be-valid
2395-longest-binary-subsequence-less-than-or-equal-to-k
2456-construct-smallest-number-from-di-string

Two Pointers

0026-remove-duplicates-from-sorted-array
0027-remove-element
0080-remove-duplicates-from-sorted-array-ii
0088-merge-sorted-array
0189-rotate-array

Sorting

0088-merge-sorted-array
0169-majority-element
0274-h-index
2473-max-sum-of-a-pair-with-equal-sum-of-digits

Counting

0169-majority-element
1160-letter-tile-possibilities
1364-tuple-with-same-product
1915-check-if-one-string-swap-can-make-strings-equal
2140-longest-subsequence-repeated-k-times
2448-count-number-of-bad-pairs

Simulation

2021-remove-all-occurrences-of-a-substring
3332-minimum-operations-to-exceed-threshold-value-ii
3434-find-the-number-of-distinct-colors-among-the-balls
3600-find-the-k-th-character-in-string-game-i

Design

0380-insert-delete-getrandom-o1
1387-find-elements-in-a-contaminated-binary-tree
1477-product-of-the-last-k-numbers
2434-design-a-number-container-system

Heap (Priority Queue)

2434-design-a-number-container-system
2473-max-sum-of-a-pair-with-equal-sum-of-digits
3332-minimum-operations-to-exceed-threshold-value-ii

Ordered Set

2434-design-a-number-container-system

Math

0189-rotate-array
0380-insert-delete-getrandom-o1
1477-product-of-the-last-k-numbers
2448-count-number-of-bad-pairs
3600-find-the-k-th-character-in-string-game-i

Divide and Conquer

0169-majority-element

Prefix Sum

1477-product-of-the-last-k-numbers
1603-running-sum-of-1d-array
3618-find-the-original-typed-string-ii

Data Stream

1477-product-of-the-last-k-numbers

Backtracking

1160-letter-tile-possibilities
1516-the-k-th-lexicographical-string-of-all-happy-strings-of-length-n
2140-longest-subsequence-repeated-k-times
2456-construct-smallest-number-from-di-string

Tree

1387-find-elements-in-a-contaminated-binary-tree
2564-most-profitable-path-in-a-tree

Binary Tree

1387-find-elements-in-a-contaminated-binary-tree

Dynamic Programming

0045-jump-game-ii
0055-jump-game
0121-best-time-to-buy-and-sell-stock
0122-best-time-to-buy-and-sell-stock-ii
2395-longest-binary-subsequence-less-than-or-equal-to-k
3618-find-the-original-typed-string-ii

Memoization

2395-longest-binary-subsequence-less-than-or-equal-to-k

Enumeration

2140-longest-subsequence-repeated-k-times

Counting Sort

0274-h-index

Randomized

0380-insert-delete-getrandom-o1

Bit Manipulation

3600-find-the-k-th-character-in-string-game-i

Recursion

3600-find-the-k-th-character-in-string-game-i

Releases

No releases published

Packages

No packages published