Navoren / LeetCode_Solutions

Collection of LeetCode questions to ace the coding interview! - Created using [LeetHub v2](https://github.com/arunbhardwaj/LeetHub-2.0)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LeetCode_Solutions

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

Array

0026-remove-duplicates-from-sorted-array
0033-search-in-rotated-sorted-array
0034-find-first-and-last-position-of-element-in-sorted-array
0035-search-insert-position
0075-sort-colors
0081-search-in-rotated-sorted-array-ii
0153-find-minimum-in-rotated-sorted-array
0189-rotate-array
0330-patching-array
0502-ipo
0540-single-element-in-a-sorted-array
0648-replace-words
0792-binary-search
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
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
2148-minimum-number-of-moves-to-seat-everyone

Hash Table

0648-replace-words
0876-hand-of-straights
1016-subarray-sums-divisible-by-k
1044-find-common-characters
1217-relative-sort-array

String

0648-replace-words
1044-find-common-characters

Greedy

0330-patching-array
0502-ipo
0853-most-profit-assigning-work
0876-hand-of-straights
0982-minimum-increment-to-make-array-unique
1285-balance-a-binary-search-tree
2148-minimum-number-of-moves-to-seat-everyone
2379-maximum-total-importance-of-roads

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
2379-maximum-total-importance-of-roads

Trie

0648-replace-words

Prefix 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

Two Pointers

0026-remove-duplicates-from-sorted-array
0061-rotate-list
0075-sort-colors
0189-rotate-array
0633-sum-of-square-numbers
0853-most-profit-assigning-work

Linked List

0061-rotate-list

Heap (Priority Queue)

0502-ipo
1549-longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit
2379-maximum-total-importance-of-roads

Math

0189-rotate-array
0633-sum-of-square-numbers

Binary Search

0033-search-in-rotated-sorted-array
0034-find-first-and-last-position-of-element-in-sorted-array
0035-search-insert-position
0081-search-in-rotated-sorted-array-ii
0633-sum-of-square-numbers
0792-binary-search
0853-most-profit-assigning-work
1605-minimum-number-of-days-to-make-m-bouquets
1675-magnetic-force-between-two-balls

Sliding Window

1037-minimum-number-of-k-consecutive-bit-flips
1138-grumpy-bookstore-owner
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

0153-find-minimum-in-rotated-sorted-array
0540-single-element-in-a-sorted-array
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
2379-maximum-total-importance-of-roads

LeetCode Topics

Array

0162-find-peak-element
0350-intersection-of-two-arrays-ii
0907-koko-eating-bananas
1056-capacity-to-ship-packages-within-d-days
1293-three-consecutive-odds
1408-find-the-smallest-divisor-given-a-threshold
1616-minimum-difference-between-largest-and-smallest-value-in-three-moves
1646-kth-missing-positive-number
1720-crawler-log-folder
1803-average-waiting-time
1951-find-the-winner-of-the-circular-game
1983-maximum-population-year
2846-robot-collisions

Binary Search

0162-find-peak-element
0350-intersection-of-two-arrays-ii
0907-koko-eating-bananas
1056-capacity-to-ship-packages-within-d-days
1408-find-the-smallest-divisor-given-a-threshold
1646-kth-missing-positive-number

String

0013-roman-to-integer
0014-longest-common-prefix
0726-number-of-atoms
1078-remove-outermost-parentheses
1298-reverse-substrings-between-each-pair-of-parentheses
1720-crawler-log-folder
1818-maximum-score-from-removing-substrings

Stack

0726-number-of-atoms
1078-remove-outermost-parentheses
1298-reverse-substrings-between-each-pair-of-parentheses
1720-crawler-log-folder
1818-maximum-score-from-removing-substrings
2846-robot-collisions

Depth-First Search

1431-all-ancestors-of-a-node-in-a-directed-acyclic-graph

Breadth-First Search

1431-all-ancestors-of-a-node-in-a-directed-acyclic-graph

Graph

1431-all-ancestors-of-a-node-in-a-directed-acyclic-graph
1701-remove-max-number-of-edges-to-keep-graph-fully-traversable

Topological Sort

1431-all-ancestors-of-a-node-in-a-directed-acyclic-graph

Union Find

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

Hash Table

0013-roman-to-integer
0350-intersection-of-two-arrays-ii
0726-number-of-atoms

Two Pointers

0350-intersection-of-two-arrays-ii

Sorting

0350-intersection-of-two-arrays-ii
0726-number-of-atoms
1616-minimum-difference-between-largest-and-smallest-value-in-three-moves
2846-robot-collisions

Greedy

1616-minimum-difference-between-largest-and-smallest-value-in-three-moves
1818-maximum-score-from-removing-substrings

Linked List

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

Simulation

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
1642-water-bottles
1951-find-the-winner-of-the-circular-game
2645-pass-the-pillow

Recursion

0021-merge-two-sorted-lists
1951-find-the-winner-of-the-circular-game

Queue

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

Trie

0014-longest-common-prefix

Database

0584-find-customer-referee
0595-big-countries
1258-article-views-i
1827-invalid-tweets
1908-recyclable-and-low-fat-products

Counting

1983-maximum-population-year

Prefix Sum

1983-maximum-population-year

About

Collection of LeetCode questions to ace the coding interview! - Created using [LeetHub v2](https://github.com/arunbhardwaj/LeetHub-2.0)


Languages

Language:C++ 95.0%Language:Python 5.0%