Skip to content

erdenebayrd/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

LeetCode Topics

Array

0015-3sum
0042-trapping-rain-water
0049-group-anagrams
0054-spiral-matrix
0055-jump-game
0056-merge-intervals
0162-find-peak-element
0200-number-of-islands
0215-kth-largest-element-in-an-array
0253-meeting-rooms-ii
0317-shortest-distance-from-all-buildings
0325-maximum-size-subarray-sum-equals-k
0346-moving-average-from-data-stream
0368-largest-divisible-subset
0416-partition-equal-subset-sum
0621-task-scheduler
0713-subarray-product-less-than-k
1107-minimum-swaps-to-group-all-1s-together
1483-rank-teams-by-votes
1656-count-good-triplets
1713-dot-product-of-two-sparse-vectors
1993-sum-of-all-subset-xor-totals
2160-minimum-operations-to-make-a-uni-value-grid
2169-simple-bank-system
2220-find-all-possible-recipes-from-given-supplies
2262-solving-questions-with-brainpower
2265-partition-array-according-to-given-pivot
2277-count-equal-and-divisible-pairs-in-an-array
2280-count-good-triplets-in-an-array
2308-divide-array-into-equal-pairs
2551-apply-operations-to-an-array
2555-design-sql
2588-maximum-number-of-points-from-grid-queries
2614-maximum-count-of-positive-integer-and-negative-integer
2626-count-the-number-of-good-subarrays
2665-minimum-time-to-repair-cars
2681-put-marbles-in-bags
2690-house-robber-iv
2699-count-the-number-of-fair-pairs
2707-merge-two-2d-arrays-by-summing-values
2880-find-the-closest-marked-node
2888-minimum-index-of-a-valid-split
3001-apply-operations-to-maximize-score
3152-maximum-value-of-an-ordered-triplet-ii
3154-maximum-value-of-an-ordered-triplet-i
3348-minimum-cost-walk-in-weighted-graph
3372-longest-strictly-increasing-or-strictly-decreasing-subarray
3430-count-days-without-meetings
3475-minimum-operations-to-make-binary-array-elements-equal-to-one-i
3483-alternating-groups-ii
3594-identify-the-largest-outlier-in-an-array
3621-minimum-operations-to-make-array-values-equal-to-k
3639-zero-array-transformation-i
3643-zero-array-transformation-ii
3656-minimum-number-of-operations-to-make-elements-in-array-distinct
3657-check-if-grid-can-be-cut-into-sections

Bit Manipulation

0266-palindrome-permutation
1993-sum-of-all-subset-xor-totals
2059-unique-length-3-palindromic-subsequences
2308-divide-array-into-equal-pairs
3348-minimum-cost-walk-in-weighted-graph
3475-minimum-operations-to-make-binary-array-elements-equal-to-one-i

Queue

0346-moving-average-from-data-stream
3475-minimum-operations-to-make-binary-array-elements-equal-to-one-i

Sliding Window

0713-subarray-product-less-than-k
1084-find-k-length-substrings-with-no-repeated-characters
1107-minimum-swaps-to-group-all-1s-together
1460-number-of-substrings-containing-all-three-characters
2626-count-the-number-of-good-subarrays
3475-minimum-operations-to-make-binary-array-elements-equal-to-one-i
3483-alternating-groups-ii

Prefix Sum

0253-meeting-rooms-ii
0325-maximum-size-subarray-sum-equals-k
0713-subarray-product-less-than-k
2059-unique-length-3-palindromic-subsequences
3475-minimum-operations-to-make-binary-array-elements-equal-to-one-i
3639-zero-array-transformation-i
3643-zero-array-transformation-ii

Hash Table

0049-group-anagrams
0146-lru-cache
0266-palindrome-permutation
0314-binary-tree-vertical-order-traversal
0325-maximum-size-subarray-sum-equals-k
0621-task-scheduler
0768-partition-labels
0778-reorganize-string
1084-find-k-length-substrings-with-no-repeated-characters
1218-lowest-common-ancestor-of-deepest-leaves
1460-number-of-substrings-containing-all-three-characters
1483-rank-teams-by-votes
1713-dot-product-of-two-sparse-vectors
1790-lowest-common-ancestor-of-a-binary-tree-iii
2059-unique-length-3-palindromic-subsequences
2161-stock-price-fluctuation
2169-simple-bank-system
2220-find-all-possible-recipes-from-given-supplies
2308-divide-array-into-equal-pairs
2487-optimal-partition-of-string
2555-design-sql
2626-count-the-number-of-good-subarrays
2707-merge-two-2d-arrays-by-summing-values
2888-minimum-index-of-a-valid-split
3548-find-the-count-of-good-integers
3594-identify-the-largest-outlier-in-an-array
3621-minimum-operations-to-make-array-values-equal-to-k
3656-minimum-number-of-operations-to-make-elements-in-array-distinct

String

0038-count-and-say
0049-group-anagrams
0266-palindrome-permutation
0408-valid-word-abbreviation
0680-valid-palindrome-ii
0768-partition-labels
0778-reorganize-string
1051-shortest-way-to-form-string
1084-find-k-length-substrings-with-no-repeated-characters
1371-minimum-remove-to-make-valid-parentheses
1460-number-of-substrings-containing-all-three-characters
1483-rank-teams-by-votes
1894-merge-strings-alternately
2059-unique-length-3-palindromic-subsequences
2220-find-all-possible-recipes-from-given-supplies
2414-move-pieces-to-obtain-a-string
2487-optimal-partition-of-string
2555-design-sql
3243-count-the-number-of-powerful-integers

Counting

0621-task-scheduler
0778-reorganize-string
1483-rank-teams-by-votes
2308-divide-array-into-equal-pairs
2614-maximum-count-of-positive-integer-and-negative-integer
3594-identify-the-largest-outlier-in-an-array

Binary Search

0162-find-peak-element
0713-subarray-product-less-than-k
1051-shortest-way-to-form-string
2280-count-good-triplets-in-an-array
2614-maximum-count-of-positive-integer-and-negative-integer
2665-minimum-time-to-repair-cars
2690-house-robber-iv
2699-count-the-number-of-fair-pairs
3643-zero-array-transformation-ii

Math

0368-largest-divisible-subset
1889-check-if-number-is-a-sum-of-powers-of-three
1993-sum-of-all-subset-xor-totals
2050-count-good-numbers
2160-minimum-operations-to-make-a-uni-value-grid
2383-add-two-integers
2610-closest-prime-numbers-in-range
2649-count-total-number-of-colored-cells
2998-count-symmetric-integers
3001-apply-operations-to-maximize-score
3243-count-the-number-of-powerful-integers
3548-find-the-count-of-good-integers

Two Pointers

0015-3sum
0042-trapping-rain-water
0253-meeting-rooms-ii
0408-valid-word-abbreviation
0680-valid-palindrome-ii
0768-partition-labels
1051-shortest-way-to-form-string
1713-dot-product-of-two-sparse-vectors
1790-lowest-common-ancestor-of-a-binary-tree-iii
1894-merge-strings-alternately
2265-partition-array-according-to-given-pivot
2414-move-pieces-to-obtain-a-string
2551-apply-operations-to-an-array
2588-maximum-number-of-points-from-grid-queries
2699-count-the-number-of-fair-pairs
2707-merge-two-2d-arrays-by-summing-values

Simulation

0054-spiral-matrix
2169-simple-bank-system
2265-partition-array-according-to-given-pivot
2551-apply-operations-to-an-array

Number Theory

2610-closest-prime-numbers-in-range
3001-apply-operations-to-maximize-score

Union Find

0200-number-of-islands
0323-number-of-connected-components-in-an-undirected-graph
2588-maximum-number-of-points-from-grid-queries
2793-count-the-number-of-complete-components
3348-minimum-cost-walk-in-weighted-graph

Graph

0323-number-of-connected-components-in-an-undirected-graph
2090-number-of-ways-to-arrive-at-destination
2220-find-all-possible-recipes-from-given-supplies
2793-count-the-number-of-complete-components
2880-find-the-closest-marked-node
3348-minimum-cost-walk-in-weighted-graph

Topological Sort

2090-number-of-ways-to-arrive-at-destination
2220-find-all-possible-recipes-from-given-supplies

Depth-First Search

0124-binary-tree-maximum-path-sum
0199-binary-tree-right-side-view
0200-number-of-islands
0314-binary-tree-vertical-order-traversal
0323-number-of-connected-components-in-an-undirected-graph
0543-diameter-of-binary-tree
1218-lowest-common-ancestor-of-deepest-leaves
2793-count-the-number-of-complete-components

Breadth-First Search

0199-binary-tree-right-side-view
0200-number-of-islands
0314-binary-tree-vertical-order-traversal
0317-shortest-distance-from-all-buildings
0323-number-of-connected-components-in-an-undirected-graph
1218-lowest-common-ancestor-of-deepest-leaves
2588-maximum-number-of-points-from-grid-queries
2793-count-the-number-of-complete-components

Heap (Priority Queue)

0215-kth-largest-element-in-an-array
0253-meeting-rooms-ii
0621-task-scheduler
0778-reorganize-string
2161-stock-price-fluctuation
2588-maximum-number-of-points-from-grid-queries
2681-put-marbles-in-bags
2880-find-the-closest-marked-node

Shortest Path

2090-number-of-ways-to-arrive-at-destination
2880-find-the-closest-marked-node

Dynamic Programming

0042-trapping-rain-water
0055-jump-game
0124-binary-tree-maximum-path-sum
0368-largest-divisible-subset
0416-partition-equal-subset-sum
2090-number-of-ways-to-arrive-at-destination
2262-solving-questions-with-brainpower
3243-count-the-number-of-powerful-integers

Sorting

0015-3sum
0049-group-anagrams
0056-merge-intervals
0215-kth-largest-element-in-an-array
0253-meeting-rooms-ii
0314-binary-tree-vertical-order-traversal
0368-largest-divisible-subset
0621-task-scheduler
0778-reorganize-string
1483-rank-teams-by-votes
2160-minimum-operations-to-make-a-uni-value-grid
2588-maximum-number-of-points-from-grid-queries
2681-put-marbles-in-bags
2699-count-the-number-of-fair-pairs
2888-minimum-index-of-a-valid-split
3001-apply-operations-to-maximize-score
3430-count-days-without-meetings
3657-check-if-grid-can-be-cut-into-sections

Tree

0124-binary-tree-maximum-path-sum
0199-binary-tree-right-side-view
0314-binary-tree-vertical-order-traversal
0543-diameter-of-binary-tree
1218-lowest-common-ancestor-of-deepest-leaves
1790-lowest-common-ancestor-of-a-binary-tree-iii

Binary Tree

0124-binary-tree-maximum-path-sum
0199-binary-tree-right-side-view
0314-binary-tree-vertical-order-traversal
0543-diameter-of-binary-tree
1218-lowest-common-ancestor-of-deepest-leaves
1790-lowest-common-ancestor-of-a-binary-tree-iii

Matrix

0054-spiral-matrix
0200-number-of-islands
0317-shortest-distance-from-all-buildings
2160-minimum-operations-to-make-a-uni-value-grid
2588-maximum-number-of-points-from-grid-queries

Greedy

0055-jump-game
0253-meeting-rooms-ii
0621-task-scheduler
0680-valid-palindrome-ii
0768-partition-labels
0778-reorganize-string
1051-shortest-way-to-form-string
2487-optimal-partition-of-string
2681-put-marbles-in-bags
3001-apply-operations-to-maximize-score

Design

0146-lru-cache
0346-moving-average-from-data-stream
1713-dot-product-of-two-sparse-vectors
2161-stock-price-fluctuation
2169-simple-bank-system
2555-design-sql

Data Stream

0346-moving-average-from-data-stream
2161-stock-price-fluctuation

Stack

0042-trapping-rain-water
1371-minimum-remove-to-make-valid-parentheses
3001-apply-operations-to-maximize-score

Enumeration

1656-count-good-triplets
1993-sum-of-all-subset-xor-totals
2998-count-symmetric-integers
3548-find-the-count-of-good-integers
3594-identify-the-largest-outlier-in-an-array

Ordered Set

2161-stock-price-fluctuation
2280-count-good-triplets-in-an-array

Linked List

0146-lru-cache

Doubly-Linked List

0146-lru-cache

Divide and Conquer

0215-kth-largest-element-in-an-array
2280-count-good-triplets-in-an-array

Quickselect

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

Monotonic Stack

0042-trapping-rain-water
3001-apply-operations-to-maximize-score

Backtracking

1993-sum-of-all-subset-xor-totals

Combinatorics

1993-sum-of-all-subset-xor-totals
3548-find-the-count-of-good-integers

Recursion

2050-count-good-numbers

Binary Indexed Tree

2280-count-good-triplets-in-an-array

Segment Tree

2280-count-good-triplets-in-an-array

Merge Sort

2280-count-good-triplets-in-an-array

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published