Skip to content

Latest commit

 

History

1,016 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A collection of LeetCode questions to ace the coding interview! - Created using LeetHub v2

LeetCode Topics

Array

0011-container-with-most-water
0027-remove-element
0048-rotate-image
0054-spiral-matrix
0073-set-matrix-zeroes
0074-search-a-2d-matrix
0118-pascals-triangle
0119-pascals-triangle-ii
0136-single-number
0162-find-peak-element
0215-kth-largest-element-in-an-array
0238-product-of-array-except-self
0240-search-a-2d-matrix-ii
0283-move-zeroes
0334-increasing-triplet-subsequence
0452-minimum-number-of-arrows-to-burst-balloons
0486-predict-the-winner
0605-can-place-flowers
0807-max-increase-to-keep-city-skyline
0825-friends-of-appropriate-ages
0832-flipping-an-image
0877-stone-game
0948-bag-of-tokens
1013-partition-array-into-three-parts-with-equal-sum
1029-two-city-scheduling
1046-last-stone-weight
1207-unique-number-of-occurrences
1252-cells-with-odd-values-in-a-matrix
1331-rank-transform-of-an-array
1390-four-divisors
1402-reducing-dishes
1431-kids-with-the-greatest-number-of-candies
1471-the-k-strongest-values-in-an-array
1509-minimum-difference-between-largest-and-smallest-value-in-three-moves
1561-maximum-number-of-coins-you-can-get
1646-get-maximum-in-generated-array
1732-find-the-highest-altitude
1785-minimum-elements-to-add-to-form-a-given-sum
1822-sign-of-the-product-of-an-array
1877-minimize-maximum-pair-sum-in-array
1936-add-minimum-number-of-rungs
1968-array-with-elements-not-equal-to-average-of-neighbors
1979-find-greatest-common-divisor-of-array
2148-count-elements-with-strictly-smaller-and-greater-elements
2200-find-all-k-distant-indices-in-an-array
2279-maximum-bags-with-full-capacity-of-rocks
2294-partition-array-such-that-maximum-difference-is-k
2352-equal-row-and-column-pairs
2511-maximum-enemy-forts-that-can-be-captured
2643-row-with-maximum-ones
2656-maximum-sum-with-exactly-k-elements
2706-buy-two-chocolates
2733-neither-minimum-nor-maximum
2965-find-missing-and-repeated-values
3033-modify-the-matrix
3074-apple-redistribution-into-boxes
3194-minimum-average-of-smallest-and-largest-elements
3718-smallest-missing-multiple-of-k
3731-find-missing-elements
3819-rotate-non-negative-elements
3875-construct-uniform-parity-array-i
3876-construct-uniform-parity-array-ii
3895-count-digit-appearances
3903-smallest-stable-index-i
3904-smallest-stable-index-ii
3936-minimum-swaps-to-move-zeros-to-end

Matrix

0048-rotate-image
0054-spiral-matrix
0073-set-matrix-zeroes
0074-search-a-2d-matrix
0240-search-a-2d-matrix-ii
0807-max-increase-to-keep-city-skyline
0832-flipping-an-image
2352-equal-row-and-column-pairs
2643-row-with-maximum-ones
2965-find-missing-and-repeated-values
3033-modify-the-matrix

Hash Table

0073-set-matrix-zeroes
1207-unique-number-of-occurrences
1331-rank-transform-of-an-array
2352-equal-row-and-column-pairs
2965-find-missing-and-repeated-values
3016-minimum-number-of-pushes-to-type-word-ii
3718-smallest-missing-multiple-of-k
3731-find-missing-elements

Math

0048-rotate-image
0231-power-of-two
0263-ugly-number
0292-nim-game
0326-power-of-three
0342-power-of-four
0483-smallest-good-base
0486-predict-the-winner
0877-stone-game
0991-broken-calculator
1252-cells-with-odd-values-in-a-matrix
1390-four-divisors
1510-stone-game-iv
1561-maximum-number-of-coins-you-can-get
1780-check-if-number-is-a-sum-of-powers-of-three
1822-sign-of-the-product-of-an-array
1979-find-greatest-common-divisor-of-array
2169-count-operations-to-obtain-zero
2235-add-two-integers
2413-smallest-even-multiple
2469-convert-the-temperature
2652-sum-multiples
2965-find-missing-and-repeated-values
3014-minimum-number-of-pushes-to-type-word-i
3099-harshad-number
3345-smallest-divisible-digit-product-i
3492-maximum-containers-on-a-ship
3516-find-closest-person
3536-maximum-product-of-two-digits
3658-gcd-of-odd-and-even-sums
3754-concatenate-non-zero-digits-and-multiply-by-sum-i
3875-construct-uniform-parity-array-i
3876-construct-uniform-parity-array-ii
3895-count-digit-appearances

Binary Search

0074-search-a-2d-matrix
0162-find-peak-element
0240-search-a-2d-matrix-ii
0374-guess-number-higher-or-lower
0483-smallest-good-base
0825-friends-of-appropriate-ages

Greedy

0011-container-with-most-water
0334-increasing-triplet-subsequence
0452-minimum-number-of-arrows-to-burst-balloons
0605-can-place-flowers
0807-max-increase-to-keep-city-skyline
0948-bag-of-tokens
0991-broken-calculator
1013-partition-array-into-three-parts-with-equal-sum
1029-two-city-scheduling
1221-split-a-string-in-balanced-strings
1402-reducing-dishes
1509-minimum-difference-between-largest-and-smallest-value-in-three-moves
1561-maximum-number-of-coins-you-can-get
1689-partitioning-into-minimum-number-of-deci-binary-numbers
1785-minimum-elements-to-add-to-form-a-given-sum
1877-minimize-maximum-pair-sum-in-array
1936-add-minimum-number-of-rungs
1968-array-with-elements-not-equal-to-average-of-neighbors
2279-maximum-bags-with-full-capacity-of-rocks
2294-partition-array-such-that-maximum-difference-is-k
2656-maximum-sum-with-exactly-k-elements
2706-buy-two-chocolates
3014-minimum-number-of-pushes-to-type-word-i
3016-minimum-number-of-pushes-to-type-word-ii
3074-apple-redistribution-into-boxes

Sorting

0215-kth-largest-element-in-an-array
0452-minimum-number-of-arrows-to-burst-balloons
0825-friends-of-appropriate-ages
0948-bag-of-tokens
1029-two-city-scheduling
1331-rank-transform-of-an-array
1402-reducing-dishes
1471-the-k-strongest-values-in-an-array
1509-minimum-difference-between-largest-and-smallest-value-in-three-moves
1561-maximum-number-of-coins-you-can-get
1877-minimize-maximum-pair-sum-in-array
1968-array-with-elements-not-equal-to-average-of-neighbors
2148-count-elements-with-strictly-smaller-and-greater-elements
2279-maximum-bags-with-full-capacity-of-rocks
2294-partition-array-such-that-maximum-difference-is-k
2706-buy-two-chocolates
2733-neither-minimum-nor-maximum
3016-minimum-number-of-pushes-to-type-word-ii
3074-apple-redistribution-into-boxes
3194-minimum-average-of-smallest-and-largest-elements
3536-maximum-product-of-two-digits
3731-find-missing-elements

Simulation

0054-spiral-matrix
0832-flipping-an-image
1252-cells-with-odd-values-in-a-matrix
1646-get-maximum-in-generated-array
2169-count-operations-to-obtain-zero
2352-equal-row-and-column-pairs
3819-rotate-non-negative-elements

Two Pointers

0011-container-with-most-water
0027-remove-element
0125-valid-palindrome
0283-move-zeroes
0345-reverse-vowels-of-a-string
0825-friends-of-appropriate-ages
0832-flipping-an-image
0948-bag-of-tokens
1471-the-k-strongest-values-in-an-array
1877-minimize-maximum-pair-sum-in-array
2200-find-all-k-distant-indices-in-an-array
2511-maximum-enemy-forts-that-can-be-captured
3194-minimum-average-of-smallest-and-largest-elements
3794-reverse-string-prefix
3884-first-matching-character-from-both-ends
3936-minimum-swaps-to-move-zeros-to-end

Dynamic Programming

0115-distinct-subsequences
0118-pascals-triangle
0119-pascals-triangle-ii
0486-predict-the-winner
0877-stone-game
0940-distinct-subsequences-ii
1402-reducing-dishes
1510-stone-game-iv

Divide and Conquer

0215-kth-largest-element-in-an-array
0240-search-a-2d-matrix-ii

Prefix Sum

0238-product-of-array-except-self
1732-find-the-highest-altitude
3903-smallest-stable-index-i
3904-smallest-stable-index-ii

String

0115-distinct-subsequences
0125-valid-palindrome
0345-reverse-vowels-of-a-string
0521-longest-uncommon-subsequence-i
0940-distinct-subsequences-ii
1221-split-a-string-in-balanced-strings
1689-partitioning-into-minimum-number-of-deci-binary-numbers
3014-minimum-number-of-pushes-to-type-word-i
3016-minimum-number-of-pushes-to-type-word-ii
3794-reverse-string-prefix
3884-first-matching-character-from-both-ends

Bit Manipulation

0136-single-number
0231-power-of-two
0342-power-of-four
0832-flipping-an-image

Interactive

0374-guess-number-higher-or-lower

Heap (Priority Queue)

0215-kth-largest-element-in-an-array
1046-last-stone-weight

Quickselect

0215-kth-largest-element-in-an-array

Game Theory

0292-nim-game
0486-predict-the-winner
0877-stone-game
1510-stone-game-iv
1561-maximum-number-of-coins-you-can-get

Number Theory

1979-find-greatest-common-divisor-of-array
2413-smallest-even-multiple
3658-gcd-of-odd-and-even-sums

Counting

1221-split-a-string-in-balanced-strings
2148-count-elements-with-strictly-smaller-and-greater-elements
3016-minimum-number-of-pushes-to-type-word-ii

Recursion

0231-power-of-two
0326-power-of-three
0342-power-of-four
0486-predict-the-winner

Enumeration

3345-smallest-divisible-digit-product-i

Minimax

0292-nim-game
0877-stone-game
1510-stone-game-iv

Nim Game

0292-nim-game
1510-stone-game-iv

Sprague–Grundy Theorem

1510-stone-game-iv

Zero-Sum Game

0877-stone-game
1510-stone-game-iv

Brainteaser

0292-nim-game

Impartial Game

0292-nim-game

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages