Skip to content

inaemin/daily-leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2,154 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

daily-leetcode

Leetcode Stats

LeetCode Topics

Array

0150-evaluate-reverse-polish-notation
0179-largest-number
0407-trapping-rain-water-ii
0494-target-sum
0496-next-greater-element-i
0503-next-greater-element-ii
0539-minimum-time-difference
0542-01-matrix
0689-maximum-sum-of-3-non-overlapping-subarrays
0780-max-chunks-to-make-sorted
0952-word-subsets
1025-minimum-cost-for-tickets
1063-best-sightseeing-pair
1396-count-servers-that-communicate
1435-xor-queries-of-a-subarray
1468-check-if-n-and-its-double-exist
1485-minimum-cost-to-make-at-least-one-valid-path-in-a-grid
1524-string-matching-in-an-array
1570-final-prices-with-a-special-discount-in-a-shop
1616-minimum-difference-between-largest-and-smallest-value-in-three-moves
1720-crawler-log-folder
1744-number-of-ways-to-form-a-target-string-given-a-dictionary
1786-count-the-number-of-consistent-strings
1803-average-waiting-time
1876-map-of-highest-peak
1878-check-if-array-is-sorted-and-rotated
1886-minimum-limit-of-balls-in-a-bag
1895-minimum-number-of-operations-to-move-all-balls-to-each-box
1917-maximum-average-pass-ratio
1951-find-the-winner-of-the-circular-game
2144-maximum-difference-between-increasing-elements
2145-grid-game
2150-kth-smallest-product-of-two-sorted-arrays
2164-two-best-non-overlapping-events
2232-adding-spaces-to-a-string
2292-counting-words-with-a-given-prefix
2358-number-of-ways-to-split-array
2465-shifting-letters-ii
2503-longest-subarray-with-maximum-bitwise-and
2533-bitwise-xor-of-all-pairings
2640-maximum-number-of-integers-to-choose-from-a-range-i
2685-first-completely-painted-row-or-column
2691-count-vowel-strings-in-ranges
2692-take-gifts-from-the-richest-pile
2695-find-score-of-an-array-after-marking-all-elements
2727-number-of-senior-citizens
2766-find-the-prefix-common-array-of-two-arrays
2792-neighboring-bitwise-xor
2868-continuous-subarrays
2891-maximum-beauty-of-an-array-after-applying-operation
3181-find-building-where-alice-and-bob-can-meet
3241-divide-array-into-arrays-with-max-difference
3309-count-prefix-and-suffix-pairs-i
3427-special-array-ii
3429-special-array-i
3555-final-array-state-after-k-multiplication-operations-i

Greedy

0179-largest-number
0680-valid-palindrome-ii
0780-max-chunks-to-make-sorted
1502-construct-k-palindrome-strings
1616-minimum-difference-between-largest-and-smallest-value-in-three-moves
1917-maximum-average-pass-ratio
2221-check-if-a-parentheses-string-can-be-valid
2300-construct-string-with-repeat-limit
2509-minimize-xor
2640-maximum-number-of-integers-to-choose-from-a-range-i
2704-maximum-difference-by-remapping-a-digit
3241-divide-array-into-arrays-with-max-difference

Sorting

0179-largest-number
0539-minimum-time-difference
0780-max-chunks-to-make-sorted
1468-check-if-n-and-its-double-exist
1616-minimum-difference-between-largest-and-smallest-value-in-three-moves
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
3241-divide-array-into-arrays-with-max-difference

Linked List

2182-find-the-minimum-and-maximum-number-of-nodes-between-critical-points
2299-merge-nodes-in-between-zeros

Simulation

1642-water-bottles
1803-average-waiting-time
1951-find-the-winner-of-the-circular-game
2232-adding-spaces-to-a-string
2299-merge-nodes-in-between-zeros
2645-pass-the-pillow
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

Math

0150-evaluate-reverse-polish-notation
0539-minimum-time-difference
1642-water-bottles
1951-find-the-winner-of-the-circular-game
2202-sum-of-k-mirror-numbers
2645-pass-the-pillow
2704-maximum-difference-by-remapping-a-digit
3555-final-array-state-after-k-multiplication-operations-i

Recursion

0394-decode-string
1951-find-the-winner-of-the-circular-game

Queue

1951-find-the-winner-of-the-circular-game
2868-continuous-subarrays

String

0179-largest-number
0394-decode-string
0539-minimum-time-difference
0680-valid-palindrome-ii
0920-uncommon-words-from-two-sentences
0952-word-subsets
1298-reverse-substrings-between-each-pair-of-parentheses
1302-delete-characters-to-make-fancy-string
1473-find-the-longest-substring-containing-vowels-in-even-counts
1502-construct-k-palindrome-strings
1524-string-matching-in-an-array
1537-maximum-score-after-splitting-a-string
1566-check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence
1720-crawler-log-folder
1744-number-of-ways-to-form-a-target-string-given-a-dictionary
1786-count-the-number-of-consistent-strings
1895-minimum-number-of-operations-to-move-all-balls-to-each-box
2059-unique-length-3-palindromic-subsequences
2221-check-if-a-parentheses-string-can-be-valid
2232-adding-spaces-to-a-string
2292-counting-words-with-a-given-prefix
2300-construct-string-with-repeat-limit
2414-move-pieces-to-obtain-a-string
2465-shifting-letters-ii
2691-count-vowel-strings-in-ranges
2727-number-of-senior-citizens
3018-make-string-a-subsequence-using-cyclic-increments
3267-find-longest-special-substring-that-occurs-thrice-i
3309-count-prefix-and-suffix-pairs-i
3455-minimum-length-of-string-after-operations

Stack

0150-evaluate-reverse-polish-notation
0394-decode-string
0496-next-greater-element-i
0503-next-greater-element-ii
0780-max-chunks-to-make-sorted
1298-reverse-substrings-between-each-pair-of-parentheses
1570-final-prices-with-a-special-discount-in-a-shop
1720-crawler-log-folder
2221-check-if-a-parentheses-string-can-be-valid
3181-find-building-where-alice-and-bob-can-meet

Two Pointers

0680-valid-palindrome-ii
1468-check-if-n-and-its-double-exist
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

Hash Table

0496-next-greater-element-i
0920-uncommon-words-from-two-sentences
0952-word-subsets
1468-check-if-n-and-its-double-exist
1473-find-the-longest-substring-containing-vowels-in-even-counts
1502-construct-k-palindrome-strings
1786-count-the-number-of-consistent-strings
2059-unique-length-3-palindromic-subsequences
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
2766-find-the-prefix-common-array-of-two-arrays
3267-find-longest-special-substring-that-occurs-thrice-i
3455-minimum-length-of-string-after-operations

Bit Manipulation

1435-xor-queries-of-a-subarray
1473-find-the-longest-substring-containing-vowels-in-even-counts
1786-count-the-number-of-consistent-strings
2059-unique-length-3-palindromic-subsequences
2503-longest-subarray-with-maximum-bitwise-and
2509-minimize-xor
2533-bitwise-xor-of-all-pairings
2766-find-the-prefix-common-array-of-two-arrays
2792-neighboring-bitwise-xor

Counting

0920-uncommon-words-from-two-sentences
1396-count-servers-that-communicate
1502-construct-k-palindrome-strings
1786-count-the-number-of-consistent-strings
2300-construct-string-with-repeat-limit
3267-find-longest-special-substring-that-occurs-thrice-i
3455-minimum-length-of-string-after-operations

Prefix Sum

1435-xor-queries-of-a-subarray
1473-find-the-longest-substring-containing-vowels-in-even-counts
1537-maximum-score-after-splitting-a-string
1895-minimum-number-of-operations-to-move-all-balls-to-each-box
2059-unique-length-3-palindromic-subsequences
2145-grid-game
2358-number-of-ways-to-split-array
2465-shifting-letters-ii
2691-count-vowel-strings-in-ranges
3427-special-array-ii

Brainteaser

2503-longest-subarray-with-maximum-bitwise-and
2533-bitwise-xor-of-all-pairings

Binary Search

1468-check-if-n-and-its-double-exist
1886-minimum-limit-of-balls-in-a-bag
2150-kth-smallest-product-of-two-sorted-arrays
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

String Matching

1524-string-matching-in-an-array
1566-check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence
2292-counting-words-with-a-given-prefix
3309-count-prefix-and-suffix-pairs-i

Depth-First Search

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

Graph

1485-minimum-cost-to-make-at-least-one-valid-path-in-a-grid
2201-valid-arrangement-of-pairs
3439-find-minimum-diameter-after-merging-two-trees

Eulerian Circuit

2201-valid-arrangement-of-pairs

Dynamic Programming

0494-target-sum
0542-01-matrix
0689-maximum-sum-of-3-non-overlapping-subarrays
1025-minimum-cost-for-tickets
1063-best-sightseeing-pair
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)

0407-trapping-rain-water-ii
1485-minimum-cost-to-make-at-least-one-valid-path-in-a-grid
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

Sliding Window

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

Ordered Set

2868-continuous-subarrays

Monotonic Queue

2868-continuous-subarrays

Monotonic Stack

0496-next-greater-element-i
0503-next-greater-element-ii
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

Tree

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

Breadth-First Search

0407-trapping-rain-water-ii
0515-find-largest-value-in-each-tree-row
0542-01-matrix
1396-count-servers-that-communicate
1485-minimum-cost-to-make-at-least-one-valid-path-in-a-grid
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 Tree

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

Binary Indexed Tree

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

Segment Tree

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

Backtracking

0494-target-sum

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

Matrix

0407-trapping-rain-water-ii
0542-01-matrix
1396-count-servers-that-communicate
1485-minimum-cost-to-make-at-least-one-valid-path-in-a-grid
1876-map-of-highest-peak
2145-grid-game
2685-first-completely-painted-row-or-column

Shortest Path

1485-minimum-cost-to-make-at-least-one-valid-path-in-a-grid

Union Find

1396-count-servers-that-communicate

Enumeration

2202-sum-of-k-mirror-numbers

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published