Skip to content

Jazz-45/LeetCode

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

Two Pointers

1566-check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence
2232-adding-spaces-to-a-string
2414-move-pieces-to-obtain-a-string
3018-make-string-a-subsequence-using-cyclic-increments

String

1502-construct-k-palindrome-strings
1566-check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence
1744-number-of-ways-to-form-a-target-string-given-a-dictionary
2221-check-if-a-parentheses-string-can-be-valid
2232-adding-spaces-to-a-string
2300-construct-string-with-repeat-limit
2414-move-pieces-to-obtain-a-string
3018-make-string-a-subsequence-using-cyclic-increments
3267-find-longest-special-substring-that-occurs-thrice-i

String Matching

1566-check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence

Array

0198-house-robber
0494-target-sum
0689-maximum-sum-of-3-non-overlapping-subarrays
0747-min-cost-climbing-stairs
0780-max-chunks-to-make-sorted
1063-best-sightseeing-pair
1396-count-servers-that-communicate
1570-final-prices-with-a-special-discount-in-a-shop
1744-number-of-ways-to-form-a-target-string-given-a-dictionary
1876-map-of-highest-peak
1886-minimum-limit-of-balls-in-a-bag
1917-maximum-average-pass-ratio
2164-two-best-non-overlapping-events
2232-adding-spaces-to-a-string
2640-maximum-number-of-integers-to-choose-from-a-range-i
2685-first-completely-painted-row-or-column
2692-take-gifts-from-the-richest-pile
2695-find-score-of-an-array-after-marking-all-elements
2868-continuous-subarrays
2891-maximum-beauty-of-an-array-after-applying-operation
3181-find-building-where-alice-and-bob-can-meet
3427-special-array-ii
3555-final-array-state-after-k-multiplication-operations-i

Simulation

2232-adding-spaces-to-a-string
2692-take-gifts-from-the-richest-pile
2695-find-score-of-an-array-after-marking-all-elements
3555-final-array-state-after-k-multiplication-operations-i

Hash Table

1502-construct-k-palindrome-strings
2300-construct-string-with-repeat-limit
2640-maximum-number-of-integers-to-choose-from-a-range-i
2685-first-completely-painted-row-or-column
2695-find-score-of-an-array-after-marking-all-elements
3267-find-longest-special-substring-that-occurs-thrice-i

Binary Search

1886-minimum-limit-of-balls-in-a-bag
2164-two-best-non-overlapping-events
2640-maximum-number-of-integers-to-choose-from-a-range-i
2891-maximum-beauty-of-an-array-after-applying-operation
3181-find-building-where-alice-and-bob-can-meet
3267-find-longest-special-substring-that-occurs-thrice-i
3427-special-array-ii

Greedy

0780-max-chunks-to-make-sorted
1502-construct-k-palindrome-strings
1917-maximum-average-pass-ratio
2221-check-if-a-parentheses-string-can-be-valid
2300-construct-string-with-repeat-limit
2640-maximum-number-of-integers-to-choose-from-a-range-i

Sorting

0780-max-chunks-to-make-sorted
2164-two-best-non-overlapping-events
2640-maximum-number-of-integers-to-choose-from-a-range-i
2695-find-score-of-an-array-after-marking-all-elements
2891-maximum-beauty-of-an-array-after-applying-operation

Dynamic Programming

0096-unique-binary-search-trees
0198-house-robber
0494-target-sum
0689-maximum-sum-of-3-non-overlapping-subarrays
0747-min-cost-climbing-stairs
1013-fibonacci-number
1063-best-sightseeing-pair
1236-n-th-tribonacci-number
1744-number-of-ways-to-form-a-target-string-given-a-dictionary
2164-two-best-non-overlapping-events
2562-count-ways-to-build-good-strings

Heap (Priority Queue)

1917-maximum-average-pass-ratio
2164-two-best-non-overlapping-events
2300-construct-string-with-repeat-limit
2692-take-gifts-from-the-richest-pile
2695-find-score-of-an-array-after-marking-all-elements
2868-continuous-subarrays
3181-find-building-where-alice-and-bob-can-meet
3555-final-array-state-after-k-multiplication-operations-i

Prefix Sum

3427-special-array-ii

Sliding Window

2868-continuous-subarrays
2891-maximum-beauty-of-an-array-after-applying-operation
3267-find-longest-special-substring-that-occurs-thrice-i

Counting

1396-count-servers-that-communicate
1502-construct-k-palindrome-strings
2300-construct-string-with-repeat-limit
3267-find-longest-special-substring-that-occurs-thrice-i

Math

0096-unique-binary-search-trees
1013-fibonacci-number
1236-n-th-tribonacci-number
3555-final-array-state-after-k-multiplication-operations-i

Recursion

1013-fibonacci-number

Memoization

1013-fibonacci-number
1236-n-th-tribonacci-number

Queue

2868-continuous-subarrays

Ordered Set

2868-continuous-subarrays

Monotonic Queue

2868-continuous-subarrays

Tree

0096-unique-binary-search-trees
0515-find-largest-value-in-each-tree-row
2493-reverse-odd-levels-of-binary-tree
2558-minimum-number-of-operations-to-sort-a-binary-tree-by-level
3058-maximum-number-of-k-divisible-components
3439-find-minimum-diameter-after-merging-two-trees

Binary Search Tree

0096-unique-binary-search-trees

Binary Tree

0096-unique-binary-search-trees
0515-find-largest-value-in-each-tree-row
2493-reverse-odd-levels-of-binary-tree
2558-minimum-number-of-operations-to-sort-a-binary-tree-by-level

Stack

0780-max-chunks-to-make-sorted
1570-final-prices-with-a-special-discount-in-a-shop
2221-check-if-a-parentheses-string-can-be-valid
3181-find-building-where-alice-and-bob-can-meet

Monotonic Stack

0780-max-chunks-to-make-sorted
1570-final-prices-with-a-special-discount-in-a-shop
3181-find-building-where-alice-and-bob-can-meet

Depth-First Search

0515-find-largest-value-in-each-tree-row
1396-count-servers-that-communicate
2493-reverse-odd-levels-of-binary-tree
3058-maximum-number-of-k-divisible-components
3439-find-minimum-diameter-after-merging-two-trees

Breadth-First Search

0515-find-largest-value-in-each-tree-row
1396-count-servers-that-communicate
1876-map-of-highest-peak
2493-reverse-odd-levels-of-binary-tree
2558-minimum-number-of-operations-to-sort-a-binary-tree-by-level
3439-find-minimum-diameter-after-merging-two-trees

Binary Indexed Tree

3181-find-building-where-alice-and-bob-can-meet

Segment Tree

3181-find-building-where-alice-and-bob-can-meet

Graph

3439-find-minimum-diameter-after-merging-two-trees

Backtracking

0494-target-sum

Matrix

1396-count-servers-that-communicate
1876-map-of-highest-peak
2685-first-completely-painted-row-or-column

Union Find

1396-count-servers-that-communicate

About

Repository for Leetcode problems

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages