Skip to content

Likheet/Leetcode-problems

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A collection of LeetCode questions solved by me

LeetCode Topics

Array

0040-combination-sum-ii
0217-contains-duplicate
0350-intersection-of-two-arrays-ii
0354-russian-doll-envelopes
0540-single-element-in-a-sorted-array
0624-maximum-distance-in-arrays
0719-find-k-th-smallest-pair-distance
0720-longest-word-in-dictionary
0721-accounts-merge
0722-remove-comments
0870-magic-squares-in-grid
0890-lemonade-change
0921-spiral-matrix-iii
0932-monotonic-array
0948-sort-an-array
0999-regions-cut-by-slashes
1196-filling-bookcase-shelves
1207-delete-nodes-and-return-forest
1240-stone-game-ii
1333-sort-the-jumbled-numbers
1496-lucky-numbers-in-a-matrix
1511-count-number-of-teams
1556-make-two-arrays-equal-by-reversing-subarrays
1615-range-sum-of-sorted-subarray-sums
1616-minimum-difference-between-largest-and-smallest-value-in-three-moves
1626-can-make-arithmetic-progression-from-sequence
1691-minimum-number-of-days-to-disconnect-island
1711-find-valid-matrix-given-row-and-column-sums
1720-crawler-log-folder
1741-sort-array-by-increasing-frequency
1803-average-waiting-time
1951-find-the-winner-of-the-circular-game
2067-maximum-number-of-points-with-cost
2163-kth-distinct-string-in-an-array
2255-minimum-swaps-to-group-all-1s-together-ii
2306-create-binary-tree-from-descriptions
2472-build-a-matrix-with-conditions
2502-sort-the-people
2727-number-of-senior-citizens
2846-robot-collisions

Hash Table

0013-roman-to-integer
0217-contains-duplicate
0264-ugly-number-ii
0350-intersection-of-two-arrays-ii
0720-longest-word-in-dictionary
0721-accounts-merge
0726-number-of-atoms
0870-magic-squares-in-grid
0999-regions-cut-by-slashes
1207-delete-nodes-and-return-forest
1556-make-two-arrays-equal-by-reversing-subarrays
1741-sort-array-by-increasing-frequency
2163-kth-distinct-string-in-an-array
2306-create-binary-tree-from-descriptions
2502-sort-the-people
3276-minimum-number-of-pushes-to-type-word-ii

Two Pointers

0350-intersection-of-two-arrays-ii
0541-reverse-string-ii
0719-find-k-th-smallest-pair-distance
1615-range-sum-of-sorted-subarray-sums

Binary Search

0350-intersection-of-two-arrays-ii
0352-data-stream-as-disjoint-intervals
0354-russian-doll-envelopes
0540-single-element-in-a-sorted-array
0719-find-k-th-smallest-pair-distance
1615-range-sum-of-sorted-subarray-sums

Sorting

0217-contains-duplicate
0350-intersection-of-two-arrays-ii
0354-russian-doll-envelopes
0719-find-k-th-smallest-pair-distance
0720-longest-word-in-dictionary
0721-accounts-merge
0726-number-of-atoms
0948-sort-an-array
1333-sort-the-jumbled-numbers
1556-make-two-arrays-equal-by-reversing-subarrays
1615-range-sum-of-sorted-subarray-sums
1616-minimum-difference-between-largest-and-smallest-value-in-three-moves
1626-can-make-arithmetic-progression-from-sequence
1741-sort-array-by-increasing-frequency
2502-sort-the-people
2846-robot-collisions
3276-minimum-number-of-pushes-to-type-word-ii

Design

0352-data-stream-as-disjoint-intervals
0789-kth-largest-element-in-a-stream

Ordered Set

0352-data-stream-as-disjoint-intervals

Dynamic Programming

0264-ugly-number-ii
0354-russian-doll-envelopes
0650-2-keys-keyboard
0664-strange-printer
1196-filling-bookcase-shelves
1240-stone-game-ii
1511-count-number-of-teams
1756-minimum-deletions-to-make-string-balanced
2067-maximum-number-of-points-with-cost

Greedy

0624-maximum-distance-in-arrays
0890-lemonade-change
1341-split-a-string-in-balanced-strings
1369-minimum-swaps-to-make-strings-equal
1616-minimum-difference-between-largest-and-smallest-value-in-three-moves
1711-find-valid-matrix-given-row-and-column-sums
1818-maximum-score-from-removing-substrings
3276-minimum-number-of-pushes-to-type-word-ii

Database

0176-second-highest-salary
0180-consecutive-numbers
0185-department-top-three-salaries
0196-delete-duplicate-emails
0585-investments-in-2016
0596-classes-more-than-5-students
0602-friend-requests-ii-who-has-the-most-friends
0610-triangle-judgement
0619-biggest-single-number
0620-not-boring-movies
0626-exchange-seats
1135-customers-who-bought-all-products
1155-product-sales-analysis-iii
1182-game-play-analysis-iv
1245-user-activity-for-the-past-30-days-i
1278-product-price-at-a-given-date
1292-immediate-food-delivery-ii
1317-monthly-transactions-i
1327-last-person-to-fit-in-the-bus
1338-queries-quality-and-percentage
1390-average-selling-price
1452-restaurant-growth
1462-list-the-products-ordered-in-a-period
1480-movie-rating
1625-group-sold-products-by-the-date
1670-patients-with-a-condition
1773-percentage-of-users-attended-a-contest
1811-fix-names-in-a-table
1877-find-followers-count
1882-the-number-of-employees-which-report-to-each-employee
1942-primary-department-for-each-employee
2057-count-salary-categories
2087-confirmation-rate
2127-employees-whose-manager-left-the-company
2495-number-of-unique-subjects-taught-by-each-teacher

Tree

0235-lowest-common-ancestor-of-a-binary-search-tree
0789-kth-largest-element-in-a-stream
1207-delete-nodes-and-return-forest
1653-number-of-good-leaf-nodes-pairs
2217-step-by-step-directions-from-a-binary-tree-node-to-another
2306-create-binary-tree-from-descriptions

Depth-First Search

0235-lowest-common-ancestor-of-a-binary-search-tree
0721-accounts-merge
0999-regions-cut-by-slashes
1207-delete-nodes-and-return-forest
1653-number-of-good-leaf-nodes-pairs
1691-minimum-number-of-days-to-disconnect-island
2217-step-by-step-directions-from-a-binary-tree-node-to-another

Binary Search Tree

0235-lowest-common-ancestor-of-a-binary-search-tree
0789-kth-largest-element-in-a-stream

Binary Tree

0235-lowest-common-ancestor-of-a-binary-search-tree
0789-kth-largest-element-in-a-stream
1207-delete-nodes-and-return-forest
1653-number-of-good-leaf-nodes-pairs
2217-step-by-step-directions-from-a-binary-tree-node-to-another
2306-create-binary-tree-from-descriptions

Linked List

2182-find-the-minimum-and-maximum-number-of-nodes-between-critical-points
2299-merge-nodes-in-between-zeros

Simulation

0921-spiral-matrix-iii
1642-water-bottles
1803-average-waiting-time
1951-find-the-winner-of-the-circular-game
2299-merge-nodes-in-between-zeros
2645-pass-the-pillow
2846-robot-collisions

Math

0013-roman-to-integer
0264-ugly-number-ii
0273-integer-to-english-words
0650-2-keys-keyboard
0870-magic-squares-in-grid
1240-stone-game-ii
1369-minimum-swaps-to-make-strings-equal
1642-water-bottles
1951-find-the-winner-of-the-circular-game
2645-pass-the-pillow

Recursion

0273-integer-to-english-words
1951-find-the-winner-of-the-circular-game

Queue

1951-find-the-winner-of-the-circular-game

String

0013-roman-to-integer
0058-length-of-last-word
0273-integer-to-english-words
0541-reverse-string-ii
0664-strange-printer
0720-longest-word-in-dictionary
0721-accounts-merge
0722-remove-comments
0726-number-of-atoms
0742-to-lower-case
1298-reverse-substrings-between-each-pair-of-parentheses
1341-split-a-string-in-balanced-strings
1369-minimum-swaps-to-make-strings-equal
1720-crawler-log-folder
1756-minimum-deletions-to-make-string-balanced
1818-maximum-score-from-removing-substrings
2163-kth-distinct-string-in-an-array
2217-step-by-step-directions-from-a-binary-tree-node-to-another
2502-sort-the-people
2727-number-of-senior-citizens
3276-minimum-number-of-pushes-to-type-word-ii

Stack

0726-number-of-atoms
1298-reverse-substrings-between-each-pair-of-parentheses
1720-crawler-log-folder
1756-minimum-deletions-to-make-string-balanced
1818-maximum-score-from-removing-substrings
2846-robot-collisions

Counting

1341-split-a-string-in-balanced-strings
2163-kth-distinct-string-in-an-array
3276-minimum-number-of-pushes-to-type-word-ii

Matrix

0870-magic-squares-in-grid
0921-spiral-matrix-iii
0999-regions-cut-by-slashes
1496-lucky-numbers-in-a-matrix
1691-minimum-number-of-days-to-disconnect-island
1711-find-valid-matrix-given-row-and-column-sums
2472-build-a-matrix-with-conditions

Graph

2171-second-minimum-time-to-reach-destination
2472-build-a-matrix-with-conditions

Topological Sort

2472-build-a-matrix-with-conditions

Divide and Conquer

0948-sort-an-array

Heap (Priority Queue)

0264-ugly-number-ii
0789-kth-largest-element-in-a-stream
0948-sort-an-array

Merge Sort

0948-sort-an-array

Bucket Sort

0948-sort-an-array

Radix Sort

0948-sort-an-array

Counting Sort

0948-sort-an-array

Breadth-First Search

0721-accounts-merge
0999-regions-cut-by-slashes
1691-minimum-number-of-days-to-disconnect-island
2171-second-minimum-time-to-reach-destination

Shortest Path

2171-second-minimum-time-to-reach-destination

Binary Indexed Tree

1511-count-number-of-teams

Sliding Window

2255-minimum-swaps-to-group-all-1s-together-ii

Union Find

0721-accounts-merge
0999-regions-cut-by-slashes

Data Stream

0789-kth-largest-element-in-a-stream

Backtracking

0040-combination-sum-ii

Strongly Connected Component

1691-minimum-number-of-days-to-disconnect-island

Trie

0720-longest-word-in-dictionary

Prefix Sum

1240-stone-game-ii

Game Theory

1240-stone-game-ii

About

All my LeetCode solved problems from now onwards

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages