Skip to content

Collection of LeetCode questions that I have solved - Synced using LeetHub v2 extension

Notifications You must be signed in to change notification settings

HirenRupchandani/leetcode-submissions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leetcode-submissions

LeetCode Stats

Two Pointers

0075-sort-colors
0344-reverse-string
0633-sum-of-square-numbers
0853-most-profit-assigning-work
2572-append-characters-to-string-to-make-subsequence

String

0344-reverse-string
0409-longest-palindrome
0648-replace-words
1044-find-common-characters
2572-append-characters-to-string-to-make-subsequence
3329-find-the-length-of-the-longest-common-prefix

Greedy

0330-patching-array
0409-longest-palindrome
0502-ipo
0853-most-profit-assigning-work
0876-hand-of-straights
0982-minimum-increment-to-make-array-unique
1285-balance-a-binary-search-tree
1938-minimum-operations-to-make-the-array-increasing
2148-minimum-number-of-moves-to-seat-everyone
2572-append-characters-to-string-to-make-subsequence

Hash Table

0409-longest-palindrome
0523-continuous-subarray-sum
0648-replace-words
0876-hand-of-straights
1016-subarray-sums-divisible-by-k
1044-find-common-characters
1217-relative-sort-array
1370-count-number-of-nice-subarrays
2596-add-edges-to-make-degrees-of-all-nodes-even
3329-find-the-length-of-the-longest-common-prefix

Array

0075-sort-colors
0289-game-of-life
0330-patching-array
0502-ipo
0523-continuous-subarray-sum
0648-replace-words
0853-most-profit-assigning-work
0876-hand-of-straights
0982-minimum-increment-to-make-array-unique
1016-subarray-sums-divisible-by-k
1037-minimum-number-of-k-consecutive-bit-flips
1044-find-common-characters
1137-height-checker
1138-grumpy-bookstore-owner
1217-relative-sort-array
1370-count-number-of-nice-subarrays
1549-longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit
1605-minimum-number-of-days-to-make-m-bouquets
1675-magnetic-force-between-two-balls
1938-minimum-operations-to-make-the-array-increasing
2148-minimum-number-of-moves-to-seat-everyone
3329-find-the-length-of-the-longest-common-prefix

Sorting

0075-sort-colors
0502-ipo
0853-most-profit-assigning-work
0876-hand-of-straights
0982-minimum-increment-to-make-array-unique
1137-height-checker
1217-relative-sort-array
1675-magnetic-force-between-two-balls
2148-minimum-number-of-moves-to-seat-everyone

Trie

0648-replace-words
3329-find-the-length-of-the-longest-common-prefix

Math

0523-continuous-subarray-sum
0633-sum-of-square-numbers
1370-count-number-of-nice-subarrays

Prefix Sum

0523-continuous-subarray-sum
1016-subarray-sums-divisible-by-k
1037-minimum-number-of-k-consecutive-bit-flips

Counting Sort

0982-minimum-increment-to-make-array-unique
1137-height-checker
1217-relative-sort-array

Heap (Priority Queue)

0502-ipo
1549-longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit

Binary Search

0633-sum-of-square-numbers
0853-most-profit-assigning-work
1605-minimum-number-of-days-to-make-m-bouquets
1675-magnetic-force-between-two-balls

Database

0601-human-traffic-of-stadium

Sliding Window

1037-minimum-number-of-k-consecutive-bit-flips
1138-grumpy-bookstore-owner
1370-count-number-of-nice-subarrays
1549-longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit

Queue

1037-minimum-number-of-k-consecutive-bit-flips
1549-longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit

Ordered Set

1549-longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit

Monotonic Queue

1549-longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit

Bit Manipulation

1037-minimum-number-of-k-consecutive-bit-flips

Tree

1114-binary-search-tree-to-greater-sum-tree
1285-balance-a-binary-search-tree

Depth-First Search

1114-binary-search-tree-to-greater-sum-tree
1285-balance-a-binary-search-tree

Binary Search Tree

1114-binary-search-tree-to-greater-sum-tree
1285-balance-a-binary-search-tree

Binary Tree

1114-binary-search-tree-to-greater-sum-tree
1285-balance-a-binary-search-tree

Divide and Conquer

1285-balance-a-binary-search-tree

Graph

1916-find-center-of-star-graph
2596-add-edges-to-make-degrees-of-all-nodes-even

Matrix

0289-game-of-life

Simulation

0289-game-of-life

LeetCode Topics

Greedy

1616-minimum-difference-between-largest-and-smallest-value-in-three-moves
1633-minimum-number-of-increments-on-subarrays-to-form-a-target-array
1711-find-valid-matrix-given-row-and-column-sums
1818-maximum-score-from-removing-substrings
2379-maximum-total-importance-of-roads

Graph

0684-redundant-connection
1431-all-ancestors-of-a-node-in-a-directed-acyclic-graph
1701-remove-max-number-of-edges-to-keep-graph-fully-traversable
2379-maximum-total-importance-of-roads
2472-build-a-matrix-with-conditions
3235-minimum-cost-to-convert-string-i

Sorting

0015-3sum
0242-valid-anagram
0350-intersection-of-two-arrays-ii
0726-number-of-atoms
0948-sort-an-array
1014-k-closest-points-to-origin
1333-sort-the-jumbled-numbers
1616-minimum-difference-between-largest-and-smallest-value-in-three-moves
1741-sort-array-by-increasing-frequency
2379-maximum-total-importance-of-roads
2502-sort-the-people

Heap (Priority Queue)

0789-kth-largest-element-in-a-stream
0948-sort-an-array
1014-k-closest-points-to-origin
2379-maximum-total-importance-of-roads

Depth-First Search

0684-redundant-connection
1207-delete-nodes-and-return-forest
1431-all-ancestors-of-a-node-in-a-directed-acyclic-graph
1653-number-of-good-leaf-nodes-pairs
2217-step-by-step-directions-from-a-binary-tree-node-to-another

Breadth-First Search

0684-redundant-connection
1431-all-ancestors-of-a-node-in-a-directed-acyclic-graph

Topological Sort

1431-all-ancestors-of-a-node-in-a-directed-acyclic-graph
2472-build-a-matrix-with-conditions

Union Find

0684-redundant-connection
1701-remove-max-number-of-edges-to-keep-graph-fully-traversable

Array

0015-3sum
0084-largest-rectangle-in-histogram
0350-intersection-of-two-arrays-ii
0739-daily-temperatures
0870-magic-squares-in-grid
0921-spiral-matrix-iii
0948-sort-an-array
1014-k-closest-points-to-origin
1196-filling-bookcase-shelves
1207-delete-nodes-and-return-forest
1293-three-consecutive-odds
1333-sort-the-jumbled-numbers
1496-lucky-numbers-in-a-matrix
1511-count-number-of-teams
1616-minimum-difference-between-largest-and-smallest-value-in-three-moves
1633-minimum-number-of-increments-on-subarrays-to-form-a-target-array
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
2163-kth-distinct-string-in-an-array
2306-create-binary-tree-from-descriptions
2472-build-a-matrix-with-conditions
2502-sort-the-people
3235-minimum-cost-to-convert-string-i

Hash Table

0138-copy-list-with-random-pointer
0242-valid-anagram
0350-intersection-of-two-arrays-ii
0726-number-of-atoms
0870-magic-squares-in-grid
1207-delete-nodes-and-return-forest
1741-sort-array-by-increasing-frequency
2163-kth-distinct-string-in-an-array
2306-create-binary-tree-from-descriptions
2502-sort-the-people

Two Pointers

0015-3sum
0350-intersection-of-two-arrays-ii

Binary Search

0350-intersection-of-two-arrays-ii

Linked List

0138-copy-list-with-random-pointer
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

Math

0273-integer-to-english-words
0870-magic-squares-in-grid
1014-k-closest-points-to-origin
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

0020-valid-parentheses
0242-valid-anagram
0273-integer-to-english-words
0664-strange-printer
0726-number-of-atoms
1298-reverse-substrings-between-each-pair-of-parentheses
1720-crawler-log-folder
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
3235-minimum-cost-to-convert-string-i

Stack

0020-valid-parentheses
0084-largest-rectangle-in-histogram
0155-min-stack
0726-number-of-atoms
0739-daily-temperatures
1298-reverse-substrings-between-each-pair-of-parentheses
1633-minimum-number-of-increments-on-subarrays-to-form-a-target-array
1720-crawler-log-folder
1818-maximum-score-from-removing-substrings

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

Binary 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

Matrix

0870-magic-squares-in-grid
0921-spiral-matrix-iii
1496-lucky-numbers-in-a-matrix
1711-find-valid-matrix-given-row-and-column-sums
2472-build-a-matrix-with-conditions

Divide and Conquer

0948-sort-an-array
1014-k-closest-points-to-origin

Merge Sort

0948-sort-an-array

Bucket Sort

0948-sort-an-array

Radix Sort

0948-sort-an-array

Counting Sort

0948-sort-an-array
2163-kth-distinct-string-in-an-array

Shortest Path

3235-minimum-cost-to-convert-string-i

Dynamic Programming

0664-strange-printer
1196-filling-bookcase-shelves
1511-count-number-of-teams
1633-minimum-number-of-increments-on-subarrays-to-form-a-target-array

Binary Indexed Tree

1511-count-number-of-teams

Database

0595-big-countries
0619-biggest-single-number

Design

0155-min-stack
0789-kth-largest-element-in-a-stream

Monotonic Stack

0084-largest-rectangle-in-histogram
0739-daily-temperatures
1633-minimum-number-of-increments-on-subarrays-to-form-a-target-array

Binary Search Tree

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

Data Stream

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

Geometry

1014-k-closest-points-to-origin

Quickselect

1014-k-closest-points-to-origin

About

Collection of LeetCode questions that I have solved - Synced using LeetHub v2 extension

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages