Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

141 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My solutions for some leetcode Problems

LeetCode Topics

Array

0011-container-with-most-water
0238-product-of-array-except-self
0283-move-zeroes
0334-increasing-triplet-subsequence
0605-can-place-flowers
0643-maximum-average-subarray-i
0724-find-pivot-index
0780-max-chunks-to-make-sorted
0952-word-subsets
1046-max-consecutive-ones-iii
1319-unique-number-of-occurrences
1392-find-the-difference-of-two-arrays
1485-minimum-cost-to-make-at-least-one-valid-path-in-a-grid
1514-minimum-value-to-get-positive-step-by-step-sum
1524-string-matching-in-an-array
1528-kids-with-the-greatest-number-of-candies
1570-final-prices-with-a-special-discount-in-a-shop
1586-longest-subarray-of-1s-after-deleting-one-element
1603-running-sum-of-1d-array
1833-find-the-highest-altitude
2145-grid-game
2265-partition-array-according-to-given-pivot
2292-counting-words-with-a-given-prefix
2358-number-of-ways-to-split-array
2518-the-employee-that-worked-on-the-longest-task
2533-bitwise-xor-of-all-pairings
2551-apply-operations-to-an-array
2614-maximum-count-of-positive-integer-and-negative-integer
2685-first-completely-painted-row-or-column
2691-count-vowel-strings-in-ranges
2707-merge-two-2d-arrays-by-summing-values
2727-number-of-senior-citizens
2766-find-the-prefix-common-array-of-two-arrays
2792-neighboring-bitwise-xor
3093-sum-of-values-at-indices-with-k-set-bits
3227-find-missing-and-repeated-values
3309-count-prefix-and-suffix-pairs-i
3429-special-array-i
3555-final-array-state-after-k-multiplication-operations-i

Bit Manipulation

0338-counting-bits
0389-find-the-difference
2059-unique-length-3-palindromic-subsequences
2509-minimize-xor
2533-bitwise-xor-of-all-pairings
2766-find-the-prefix-common-array-of-two-arrays
2792-neighboring-bitwise-xor
3093-sum-of-values-at-indices-with-k-set-bits

Brainteaser

2533-bitwise-xor-of-all-pairings

Dynamic Programming

0338-counting-bits
0392-is-subsequence
1013-fibonacci-number
1586-longest-subarray-of-1s-after-deleting-one-element

Greedy

0011-container-with-most-water
0334-increasing-triplet-subsequence
0605-can-place-flowers
0780-max-chunks-to-make-sorted
1502-construct-k-palindrome-strings
2221-check-if-a-parentheses-string-can-be-valid
2509-minimize-xor

Hash Table

0389-find-the-difference
0952-word-subsets
1319-unique-number-of-occurrences
1392-find-the-difference-of-two-arrays
1502-construct-k-palindrome-strings
1777-determine-if-two-strings-are-close
1904-second-largest-digit-in-a-string
2059-unique-length-3-palindromic-subsequences
2677-cousins-in-binary-tree-ii
2685-first-completely-painted-row-or-column
2707-merge-two-2d-arrays-by-summing-values
2766-find-the-prefix-common-array-of-two-arrays
3227-find-missing-and-repeated-values
3455-minimum-length-of-string-after-operations

String

0151-reverse-words-in-a-string
0344-reverse-string
0345-reverse-vowels-of-a-string
0389-find-the-difference
0392-is-subsequence
0443-string-compression
0952-word-subsets
1146-greatest-common-divisor-of-strings
1502-construct-k-palindrome-strings
1524-string-matching-in-an-array
1537-maximum-score-after-splitting-a-string
1567-maximum-number-of-vowels-in-a-substring-of-given-length
1666-make-the-string-great
1777-determine-if-two-strings-are-close
1894-merge-strings-alternately
1904-second-largest-digit-in-a-string
2059-unique-length-3-palindromic-subsequences
2221-check-if-a-parentheses-string-can-be-valid
2292-counting-words-with-a-given-prefix
2463-minimum-recolors-to-get-k-consecutive-black-blocks
2470-removing-stars-from-a-string
2691-count-vowel-strings-in-ranges
2727-number-of-senior-citizens
3309-count-prefix-and-suffix-pairs-i
3455-minimum-length-of-string-after-operations

Counting

1502-construct-k-palindrome-strings
1777-determine-if-two-strings-are-close
2614-maximum-count-of-positive-integer-and-negative-integer
3455-minimum-length-of-string-after-operations

Stack

0780-max-chunks-to-make-sorted
1570-final-prices-with-a-special-discount-in-a-shop
1666-make-the-string-great
2221-check-if-a-parentheses-string-can-be-valid
2470-removing-stars-from-a-string

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

Prefix Sum

0238-product-of-array-except-self
0724-find-pivot-index
1046-max-consecutive-ones-iii
1514-minimum-value-to-get-positive-step-by-step-sum
1537-maximum-score-after-splitting-a-string
1603-running-sum-of-1d-array
1833-find-the-highest-altitude
2059-unique-length-3-palindromic-subsequences
2145-grid-game
2358-number-of-ways-to-split-array
2691-count-vowel-strings-in-ranges

Sliding Window

0643-maximum-average-subarray-i
1046-max-consecutive-ones-iii
1567-maximum-number-of-vowels-in-a-substring-of-given-length
1586-longest-subarray-of-1s-after-deleting-one-element
2463-minimum-recolors-to-get-k-consecutive-black-blocks

Binary Search

1046-max-consecutive-ones-iii
2614-maximum-count-of-positive-integer-and-negative-integer

Two Pointers

0011-container-with-most-water
0151-reverse-words-in-a-string
0283-move-zeroes
0344-reverse-string
0345-reverse-vowels-of-a-string
0392-is-subsequence
0443-string-compression
1894-merge-strings-alternately
2265-partition-array-according-to-given-pivot
2551-apply-operations-to-an-array
2707-merge-two-2d-arrays-by-summing-values

Math

1013-fibonacci-number
1146-greatest-common-divisor-of-strings
1630-count-odd-numbers-in-an-interval-range
1889-check-if-number-is-a-sum-of-powers-of-three
2610-closest-prime-numbers-in-range
2649-count-total-number-of-colored-cells
2955-account-balance-after-rounded-purchase
3172-divisible-and-non-divisible-sums-difference
3227-find-missing-and-repeated-values
3555-final-array-state-after-k-multiplication-operations-i
3568-find-the-key-of-the-numbers

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
2677-cousins-in-binary-tree-ii

Depth-First Search

0515-find-largest-value-in-each-tree-row
2493-reverse-odd-levels-of-binary-tree
2677-cousins-in-binary-tree-ii

Breadth-First Search

0515-find-largest-value-in-each-tree-row
1485-minimum-cost-to-make-at-least-one-valid-path-in-a-grid
2493-reverse-odd-levels-of-binary-tree
2558-minimum-number-of-operations-to-sort-a-binary-tree-by-level
2677-cousins-in-binary-tree-ii

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
2677-cousins-in-binary-tree-ii

Sorting

0389-find-the-difference
0780-max-chunks-to-make-sorted
1777-determine-if-two-strings-are-close

Monotonic Stack

0780-max-chunks-to-make-sorted
1570-final-prices-with-a-special-discount-in-a-shop

Heap (Priority Queue)

1485-minimum-cost-to-make-at-least-one-valid-path-in-a-grid
3555-final-array-state-after-k-multiplication-operations-i

Simulation

2265-partition-array-according-to-given-pivot
2470-removing-stars-from-a-string
2551-apply-operations-to-an-array
3555-final-array-state-after-k-multiplication-operations-i

Graph

1485-minimum-cost-to-make-at-least-one-valid-path-in-a-grid
3189-find-champion-ii

Recursion

1013-fibonacci-number

Memoization

1013-fibonacci-number

Matrix

1485-minimum-cost-to-make-at-least-one-valid-path-in-a-grid
2145-grid-game
2685-first-completely-painted-row-or-column
3227-find-missing-and-repeated-values

Shortest Path

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

Number Theory

2610-closest-prime-numbers-in-range

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages