Skip to content

Latest commit

 

History

357 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

0014-longest-common-prefix
0049-group-anagrams
0057-insert-interval
0486-predict-the-winner
0628-maximum-product-of-three-numbers
0877-stone-game
1094-car-pooling
1109-corporate-flight-bookings
1140-stone-game-ii
1260-shift-2d-grid
1288-remove-covered-intervals
1331-rank-transform-of-an-array
1386-cinema-seat-allocation
1464-maximum-product-of-two-elements-in-an-array
1563-stone-game-v
1732-find-the-highest-altitude
1833-maximum-ice-cream-bars
1840-maximum-building-height
1846-maximum-element-after-decreasing-and-rearranging
1872-stone-game-viii
2029-stone-game-ix
2161-partition-array-according-to-given-pivot
2196-create-binary-tree-from-descriptions
2250-count-number-of-rectangles-containing-each-point
2574-left-and-right-sum-differences
2812-find-the-safest-path-in-a-grid
2948-make-lexicographically-smallest-array-by-swapping-elements
2958-length-of-longest-subarray-with-at-most-k-frequency
2996-smallest-missing-integer-greater-than-sequential-prefix-sum
3020-find-the-maximum-number-of-elements-in-subset
3069-distribute-elements-into-two-arrays-i
3312-sorted-gcd-pair-queries
3336-find-the-number-of-subsequences-with-equal-gcd
3471-find-the-largest-almost-missing-integer
3501-maximize-active-section-with-trade-ii
3513-number-of-unique-xor-triplets-i
3559-number-of-ways-to-assign-edge-weights-ii
3635-earliest-finish-time-for-land-and-water-rides-ii
3691-maximum-total-subarray-value-ii
3718-smallest-missing-multiple-of-k
3731-find-missing-elements
3737-count-subarrays-with-majority-element-i
3739-count-subarrays-with-majority-element-ii
3838-weighted-word-mapping
3867-sum-of-gcd-of-formed-pairs

Two Pointers

2095-delete-the-middle-node-of-a-linked-list
2130-maximum-twin-sum-of-a-linked-list
2161-partition-array-according-to-given-pivot
3302-find-the-lexicographically-smallest-valid-sequence
3635-earliest-finish-time-for-land-and-water-rides-ii
3734-lexicographically-smallest-palindromic-permutation-greater-than-target
3867-sum-of-gcd-of-formed-pairs

Binary Search

2250-count-number-of-rectangles-containing-each-point
2812-find-the-safest-path-in-a-grid
3312-sorted-gcd-pair-queries
3501-maximize-active-section-with-trade-ii
3635-earliest-finish-time-for-land-and-water-rides-ii

Greedy

0316-remove-duplicate-letters
1081-smallest-subsequence-of-distinct-characters
1386-cinema-seat-allocation
1833-maximum-ice-cream-bars
1846-maximum-element-after-decreasing-and-rearranging
1927-sum-game
2029-stone-game-ix
3014-minimum-number-of-pushes-to-type-word-i
3302-find-the-lexicographically-smallest-valid-sequence
3348-smallest-divisible-digit-product-ii
3635-earliest-finish-time-for-land-and-water-rides-ii
3691-maximum-total-subarray-value-ii
3720-lexicographically-smallest-permutation-greater-than-target

Sorting

0049-group-anagrams
0628-maximum-product-of-three-numbers
1094-car-pooling
1288-remove-covered-intervals
1331-rank-transform-of-an-array
1464-maximum-product-of-two-elements-in-an-array
1833-maximum-ice-cream-bars
1840-maximum-building-height
1846-maximum-element-after-decreasing-and-rearranging
2250-count-number-of-rectangles-containing-each-point
2948-make-lexicographically-smallest-array-by-swapping-elements
2996-smallest-missing-integer-greater-than-sequential-prefix-sum
3517-smallest-palindromic-rearrangement-i
3536-maximum-product-of-two-digits
3635-earliest-finish-time-for-land-and-water-rides-ii
3731-find-missing-elements
3867-sum-of-gcd-of-formed-pairs

Math

0223-rectangle-area
0486-predict-the-winner
0628-maximum-product-of-three-numbers
0877-stone-game
1140-stone-game-ii
1344-angle-between-hands-of-a-clock
1563-stone-game-v
1840-maximum-building-height
1872-stone-game-viii
1927-sum-game
2029-stone-game-ix
3014-minimum-number-of-pushes-to-type-word-i
3312-sorted-gcd-pair-queries
3336-find-the-number-of-subsequences-with-equal-gcd
3345-smallest-divisible-digit-product-i
3348-smallest-divisible-digit-product-ii
3513-number-of-unique-xor-triplets-i
3518-smallest-palindromic-rearrangement-ii
3536-maximum-product-of-two-digits
3559-number-of-ways-to-assign-edge-weights-ii
3622-check-divisibility-by-digit-sum-and-product
3658-gcd-of-odd-and-even-sums
3700-number-of-zigzag-arrays-ii
3751-total-waviness-of-numbers-in-range-i
3756-concatenate-non-zero-digits-and-multiply-by-sum-ii
3867-sum-of-gcd-of-formed-pairs

Dynamic Programming

0486-predict-the-winner
0877-stone-game
1140-stone-game-ii
1563-stone-game-v
1872-stone-game-viii
3302-find-the-lexicographically-smallest-valid-sequence
3336-find-the-number-of-subsequences-with-equal-gcd
3559-number-of-ways-to-assign-edge-weights-ii
3700-number-of-zigzag-arrays-ii
3751-total-waviness-of-numbers-in-range-i

Enumeration

1291-sequential-digits
3020-find-the-maximum-number-of-elements-in-subset
3345-smallest-divisible-digit-product-i
3499-maximize-active-section-with-trade-i
3720-lexicographically-smallest-permutation-greater-than-target
3734-lexicographically-smallest-palindromic-permutation-greater-than-target
3751-total-waviness-of-numbers-in-range-i

Prefix Sum

1094-car-pooling
1109-corporate-flight-bookings
1140-stone-game-ii
1732-find-the-highest-altitude
1872-stone-game-viii
2574-left-and-right-sum-differences
3312-sorted-gcd-pair-queries
3737-count-subarrays-with-majority-element-i
3739-count-subarrays-with-majority-element-ii
3756-concatenate-non-zero-digits-and-multiply-by-sum-ii

Hash Table

0049-group-anagrams
1189-maximum-number-of-balloons
1331-rank-transform-of-an-array
1358-number-of-substrings-containing-all-three-characters
1386-cinema-seat-allocation
2196-create-binary-tree-from-descriptions
2250-count-number-of-rectangles-containing-each-point
2958-length-of-longest-subarray-with-at-most-k-frequency
2996-smallest-missing-integer-greater-than-sequential-prefix-sum
3020-find-the-maximum-number-of-elements-in-subset
3090-maximum-length-substring-with-two-occurrences
3312-sorted-gcd-pair-queries
3471-find-the-largest-almost-missing-integer
3518-smallest-palindromic-rearrangement-ii
3718-smallest-missing-multiple-of-k
3720-lexicographically-smallest-permutation-greater-than-target
3731-find-missing-elements
3737-count-subarrays-with-majority-element-i
3739-count-subarrays-with-majority-element-ii

Tree

2196-create-binary-tree-from-descriptions
3559-number-of-ways-to-assign-edge-weights-ii

Binary Tree

2196-create-binary-tree-from-descriptions

Simulation

1094-car-pooling
1260-shift-2d-grid
2161-partition-array-according-to-given-pivot
3069-distribute-elements-into-two-arrays-i
3612-process-string-with-special-operations-i
3614-process-string-with-special-operations-ii
3838-weighted-word-mapping
3867-sum-of-gcd-of-formed-pairs

Segment Tree

3501-maximize-active-section-with-trade-ii
3691-maximum-total-subarray-value-ii
3737-count-subarrays-with-majority-element-i
3739-count-subarrays-with-majority-element-ii

Heap (Priority Queue)

1094-car-pooling
1464-maximum-product-of-two-elements-in-an-array
2812-find-the-safest-path-in-a-grid
3691-maximum-total-subarray-value-ii

Bit Manipulation

1386-cinema-seat-allocation
3513-number-of-unique-xor-triplets-i
3559-number-of-ways-to-assign-edge-weights-ii

Depth-First Search

2492-minimum-score-of-a-path-between-two-cities
2685-count-the-number-of-complete-components
3310-remove-methods-from-project
3559-number-of-ways-to-assign-edge-weights-ii

String

0014-longest-common-prefix
0049-group-anagrams
0316-remove-duplicate-letters
1081-smallest-subsequence-of-distinct-characters
1189-maximum-number-of-balloons
1358-number-of-substrings-containing-all-three-characters
1927-sum-game
2904-shortest-and-lexicographically-smallest-beautiful-string
3014-minimum-number-of-pushes-to-type-word-i
3090-maximum-length-substring-with-two-occurrences
3302-find-the-lexicographically-smallest-valid-sequence
3348-smallest-divisible-digit-product-ii
3499-maximize-active-section-with-trade-i
3501-maximize-active-section-with-trade-ii
3517-smallest-palindromic-rearrangement-i
3518-smallest-palindromic-rearrangement-ii
3612-process-string-with-special-operations-i
3614-process-string-with-special-operations-ii
3720-lexicographically-smallest-permutation-greater-than-target
3734-lexicographically-smallest-palindromic-permutation-greater-than-target
3756-concatenate-non-zero-digits-and-multiply-by-sum-ii
3838-weighted-word-mapping

Linked List

2095-delete-the-middle-node-of-a-linked-list
2130-maximum-twin-sum-of-a-linked-list

Stack

0316-remove-duplicate-letters
1081-smallest-subsequence-of-distinct-characters
2130-maximum-twin-sum-of-a-linked-list

Trie

0014-longest-common-prefix

Counting Sort

1189-maximum-number-of-balloons
1833-maximum-ice-cream-bars
2029-stone-game-ix
3312-sorted-gcd-pair-queries
3517-smallest-palindromic-rearrangement-i
3518-smallest-palindromic-rearrangement-ii
3720-lexicographically-smallest-permutation-greater-than-target
3737-count-subarrays-with-majority-element-i

Divide and Conquer

3737-count-subarrays-with-majority-element-i
3739-count-subarrays-with-majority-element-ii

Merge Sort

3737-count-subarrays-with-majority-element-i
3739-count-subarrays-with-majority-element-ii

Sliding Window

1358-number-of-substrings-containing-all-three-characters
2904-shortest-and-lexicographically-smallest-beautiful-string
2958-length-of-longest-subarray-with-at-most-k-frequency
3090-maximum-length-substring-with-two-occurrences

Breadth-First Search

2492-minimum-score-of-a-path-between-two-cities
2685-count-the-number-of-complete-components
2812-find-the-safest-path-in-a-grid
3310-remove-methods-from-project

Union-Find

2492-minimum-score-of-a-path-between-two-cities
2685-count-the-number-of-complete-components
2812-find-the-safest-path-in-a-grid
2948-make-lexicographically-smallest-array-by-swapping-elements

Matrix

1260-shift-2d-grid
2812-find-the-safest-path-in-a-grid

Graph Theory

2492-minimum-score-of-a-path-between-two-cities
2685-count-the-number-of-complete-components
3310-remove-methods-from-project

Number Theory

3312-sorted-gcd-pair-queries
3336-find-the-number-of-subsequences-with-equal-gcd
3348-smallest-divisible-digit-product-ii
3658-gcd-of-odd-and-even-sums
3867-sum-of-gcd-of-formed-pairs

Combinatorics

3312-sorted-gcd-pair-queries
3518-smallest-palindromic-rearrangement-ii

Monotonic Stack

0316-remove-duplicate-letters
1081-smallest-subsequence-of-distinct-characters

Recursion

0486-predict-the-winner

Game Theory

0486-predict-the-winner
0877-stone-game
1140-stone-game-ii
1563-stone-game-v
1872-stone-game-viii
1927-sum-game
2029-stone-game-ix

Backtracking

3348-smallest-divisible-digit-product-ii

Minimax

1140-stone-game-ii
1872-stone-game-viii
2029-stone-game-ix

Zero-Sum Game

1140-stone-game-ii
1872-stone-game-viii
2029-stone-game-ix

Nim Game

2029-stone-game-ix

Geometry

0223-rectangle-area

Binary Indexed Tree

2250-count-number-of-rectangles-containing-each-point

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages