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
0080-remove-duplicates-from-sorted-array-ii
0088-merge-sorted-array
0169-majority-element
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
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
1524-string-matching-in-an-array
1915-check-if-one-string-swap-can-make-strings-equal
2021-remove-all-occurrences-of-a-substring
2221-check-if-a-parentheses-string-can-be-valid
2292-counting-words-with-a-given-prefix
3309-count-prefix-and-suffix-pairs-i

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

Breadth-First Search

0684-redundant-connection
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
2583-divide-nodes-into-the-maximum-number-of-groups

Hash Table

0169-majority-element
0952-word-subsets
1364-tuple-with-same-product
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

Greedy

2221-check-if-a-parentheses-string-can-be-valid

Two Pointers

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

Sorting

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

Counting

0169-majority-element
1364-tuple-with-same-product
1915-check-if-one-string-swap-can-make-strings-equal
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

Design

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

1477-product-of-the-last-k-numbers
2448-count-number-of-bad-pairs

Divide and Conquer

0169-majority-element

Prefix Sum

1477-product-of-the-last-k-numbers
1603-running-sum-of-1d-array

Data Stream

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