Skip to content

karygauss03/Leetcode-Solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leetcode-Solutions

My Leetcode Solutions This is my Leetcode profile https://leetcode.com/karygauss03/

LeetCode Topics

Array

0174-dungeon-game
0787-sliding-puzzle
0892-shortest-subarray-with-sum-at-least-k
1130-last-stone-weight-ii
1147-flip-columns-for-maximum-number-of-equal-rows
1468-check-if-n-and-its-double-exist
1679-shortest-subarray-to-be-removed-to-make-array-sorted
1886-minimum-limit-of-balls-in-a-bag
1917-maximum-average-pass-ratio
2051-longest-common-subpath
2188-minimized-maximum-of-products-distributed-to-any-store
2229-maximum-fruits-harvested-after-at-most-k-steps
2232-adding-spaces-to-a-string
2343-count-unguarded-cells-in-the-grid
2375-minimum-obstacle-removal-to-reach-corner
2640-maximum-number-of-integers-to-choose-from-a-range-i
2692-take-gifts-from-the-richest-pile
2695-find-score-of-an-array-after-marking-all-elements
2699-count-the-number-of-fair-pairs
2716-prime-subtraction-operation
2832-find-the-longest-equal-subarray
2891-maximum-beauty-of-an-array-after-applying-operation
3427-special-array-ii
3522-find-the-power-of-k-size-subarrays-i
3555-final-array-state-after-k-multiplication-operations-i

Math

0292-nim-game
2716-prime-subtraction-operation
3555-final-array-state-after-k-multiplication-operations-i

Binary Search

0892-shortest-subarray-with-sum-at-least-k
1468-check-if-n-and-its-double-exist
1679-shortest-subarray-to-be-removed-to-make-array-sorted
1886-minimum-limit-of-balls-in-a-bag
2051-longest-common-subpath
2188-minimized-maximum-of-products-distributed-to-any-store
2229-maximum-fruits-harvested-after-at-most-k-steps
2640-maximum-number-of-integers-to-choose-from-a-range-i
2699-count-the-number-of-fair-pairs
2716-prime-subtraction-operation
2832-find-the-longest-equal-subarray
2891-maximum-beauty-of-an-array-after-applying-operation
3266-find-longest-special-substring-that-occurs-thrice-ii
3267-find-longest-special-substring-that-occurs-thrice-i
3427-special-array-ii

Greedy

1917-maximum-average-pass-ratio
2300-construct-string-with-repeat-limit
2640-maximum-number-of-integers-to-choose-from-a-range-i
2716-prime-subtraction-operation

Number Theory

2716-prime-subtraction-operation

Two Pointers

1468-check-if-n-and-its-double-exist
1566-check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence
1679-shortest-subarray-to-be-removed-to-make-array-sorted
2232-adding-spaces-to-a-string
2699-count-the-number-of-fair-pairs
3018-make-string-a-subsequence-using-cyclic-increments

Sorting

1468-check-if-n-and-its-double-exist
2640-maximum-number-of-integers-to-choose-from-a-range-i
2695-find-score-of-an-array-after-marking-all-elements
2699-count-the-number-of-fair-pairs
2891-maximum-beauty-of-an-array-after-applying-operation

Stack

1679-shortest-subarray-to-be-removed-to-make-array-sorted

Monotonic Stack

1679-shortest-subarray-to-be-removed-to-make-array-sorted

Sliding Window

0892-shortest-subarray-with-sum-at-least-k
2229-maximum-fruits-harvested-after-at-most-k-steps
2599-take-k-of-each-character-from-left-and-right
2832-find-the-longest-equal-subarray
2891-maximum-beauty-of-an-array-after-applying-operation
3266-find-longest-special-substring-that-occurs-thrice-ii
3267-find-longest-special-substring-that-occurs-thrice-i
3522-find-the-power-of-k-size-subarrays-i

Dynamic Programming

0174-dungeon-game
1130-last-stone-weight-ii

Queue

0892-shortest-subarray-with-sum-at-least-k

Heap (Priority Queue)

0892-shortest-subarray-with-sum-at-least-k
1917-maximum-average-pass-ratio
2300-construct-string-with-repeat-limit
2375-minimum-obstacle-removal-to-reach-corner
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

Prefix Sum

0892-shortest-subarray-with-sum-at-least-k
2229-maximum-fruits-harvested-after-at-most-k-steps
3427-special-array-ii

Monotonic Queue

0892-shortest-subarray-with-sum-at-least-k

Matrix

0174-dungeon-game
0787-sliding-puzzle
1147-flip-columns-for-maximum-number-of-equal-rows
2343-count-unguarded-cells-in-the-grid
2375-minimum-obstacle-removal-to-reach-corner

Hash Table

1147-flip-columns-for-maximum-number-of-equal-rows
1468-check-if-n-and-its-double-exist
2300-construct-string-with-repeat-limit
2599-take-k-of-each-character-from-left-and-right
2640-maximum-number-of-integers-to-choose-from-a-range-i
2695-find-score-of-an-array-after-marking-all-elements
2832-find-the-longest-equal-subarray
3266-find-longest-special-substring-that-occurs-thrice-ii
3267-find-longest-special-substring-that-occurs-thrice-i

String

1566-check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence
2232-adding-spaces-to-a-string
2300-construct-string-with-repeat-limit
2599-take-k-of-each-character-from-left-and-right
3018-make-string-a-subsequence-using-cyclic-increments
3266-find-longest-special-substring-that-occurs-thrice-ii
3267-find-longest-special-substring-that-occurs-thrice-i

Simulation

2232-adding-spaces-to-a-string
2343-count-unguarded-cells-in-the-grid
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

Breadth-First Search

0787-sliding-puzzle
2375-minimum-obstacle-removal-to-reach-corner

Graph

0332-reconstruct-itinerary
2201-valid-arrangement-of-pairs
2375-minimum-obstacle-removal-to-reach-corner
3189-find-champion-ii

Shortest Path

2375-minimum-obstacle-removal-to-reach-corner

Depth-First Search

0332-reconstruct-itinerary
2201-valid-arrangement-of-pairs

Eulerian Circuit

0332-reconstruct-itinerary
2201-valid-arrangement-of-pairs

Rolling Hash

2051-longest-common-subpath

Suffix Array

2051-longest-common-subpath

Hash Function

2051-longest-common-subpath

String Matching

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

Brainteaser

0292-nim-game

Game Theory

0292-nim-game

Counting

2300-construct-string-with-repeat-limit
3266-find-longest-special-substring-that-occurs-thrice-ii
3267-find-longest-special-substring-that-occurs-thrice-i