Skip to content

lakshya-26/LeetCode_Solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode_Solutions

Here,I will be posting various leetcode questions and solutions which I have solved

Array

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
1605-minimum-number-of-days-to-make-m-bouquets
1675-magnetic-force-between-two-balls

Binary Search

1605-minimum-number-of-days-to-make-m-bouquets
1675-magnetic-force-between-two-balls

Sorting

1675-magnetic-force-between-two-balls

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

Hash Table

1370-count-number-of-nice-subarrays

Math

1370-count-number-of-nice-subarrays

Queue

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

Heap (Priority Queue)

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

Prefix Sum

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

Graph

1916-find-center-of-star-graph

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

Greedy

1285-balance-a-binary-search-tree

LeetCode Topics

Hash Table

0001-two-sum
0017-letter-combinations-of-a-phone-number
0037-sudoku-solver
0138-copy-list-with-random-pointer
0139-word-break
0217-contains-duplicate
0264-ugly-number-ii
0560-subarray-sum-equals-k
0870-magic-squares-in-grid
0906-walking-robot-simulation
0999-regions-cut-by-slashes
1770-minimum-deletions-to-make-character-frequencies-unique
2163-kth-distinct-string-in-an-array
2502-sort-the-people
3276-minimum-number-of-pushes-to-type-word-ii
3501-delete-nodes-from-linked-list-present-in-array

Linked List

0138-copy-list-with-random-pointer
0725-split-linked-list-in-parts
2182-find-the-minimum-and-maximum-number-of-nodes-between-critical-points
2411-spiral-matrix-iv
3501-delete-nodes-from-linked-list-present-in-array

String

0008-string-to-integer-atoi
0017-letter-combinations-of-a-phone-number
0022-generate-parentheses
0131-palindrome-partitioning
0139-word-break
0273-integer-to-english-words
0282-expression-add-operators
0564-find-the-closest-palindrome
0592-fraction-addition-and-subtraction
0664-strange-printer
1700-minimum-time-to-make-rope-colorful
1756-minimum-deletions-to-make-string-balanced
1770-minimum-deletions-to-make-character-frequencies-unique
2076-sum-of-digits-of-string-after-convert
2163-kth-distinct-string-in-an-array
2502-sort-the-people
2727-number-of-senior-citizens
3276-minimum-number-of-pushes-to-type-word-ii

Math

0029-divide-two-integers
0050-powx-n
0264-ugly-number-ii
0273-integer-to-english-words
0282-expression-add-operators
0564-find-the-closest-palindrome
0592-fraction-addition-and-subtraction
0650-2-keys-keyboard
0870-magic-squares-in-grid
1240-stone-game-ii
1642-water-bottles
1951-find-the-winner-of-the-circular-game
2050-count-good-numbers
2155-find-missing-observations
2645-pass-the-pillow

Recursion

0050-powx-n
0273-integer-to-english-words
1951-find-the-winner-of-the-circular-game
2050-count-good-numbers

Simulation

0592-fraction-addition-and-subtraction
0906-walking-robot-simulation
1642-water-bottles
1803-average-waiting-time
1951-find-the-winner-of-the-circular-game
2006-find-the-student-that-will-replace-the-chalk
2076-sum-of-digits-of-string-after-convert
2132-convert-1d-array-into-2d-array
2155-find-missing-observations
2411-spiral-matrix-iv
2645-pass-the-pillow

Dynamic Programming

0022-generate-parentheses
0045-jump-game-ii
0053-maximum-subarray
0055-jump-game
0131-palindrome-partitioning
0139-word-break
0152-maximum-product-subarray
0264-ugly-number-ii
0435-non-overlapping-intervals
0650-2-keys-keyboard
0664-strange-printer
1240-stone-game-ii
1511-count-number-of-teams
1700-minimum-time-to-make-rope-colorful
1756-minimum-deletions-to-make-string-balanced
2067-maximum-number-of-points-with-cost

Backtracking

0017-letter-combinations-of-a-phone-number
0022-generate-parentheses
0037-sudoku-solver
0039-combination-sum
0040-combination-sum-ii
0051-n-queens
0078-subsets
0090-subsets-ii
0131-palindrome-partitioning
0216-combination-sum-iii
0282-expression-add-operators

Array

0001-two-sum
0011-container-with-most-water
0015-3sum
0026-remove-duplicates-from-sorted-array
0037-sudoku-solver
0039-combination-sum
0040-combination-sum-ii
0045-jump-game-ii
0051-n-queens
0053-maximum-subarray
0055-jump-game
0056-merge-intervals
0057-insert-interval
0075-sort-colors
0078-subsets
0088-merge-sorted-array
0090-subsets-ii
0135-candy
0136-single-number
0139-word-break
0152-maximum-product-subarray
0216-combination-sum-iii
0217-contains-duplicate
0238-product-of-array-except-self
0283-move-zeroes
0435-non-overlapping-intervals
0455-assign-cookies
0560-subarray-sum-equals-k
0624-maximum-distance-in-arrays
0719-find-k-th-smallest-pair-distance
0870-magic-squares-in-grid
0890-lemonade-change
0906-walking-robot-simulation
0999-regions-cut-by-slashes
1240-stone-game-ii
1325-path-with-maximum-probability
1333-sort-the-jumbled-numbers
1496-lucky-numbers-in-a-matrix
1511-count-number-of-teams
1538-maximum-points-you-can-obtain-from-cards
1700-minimum-time-to-make-rope-colorful
1803-average-waiting-time
1951-find-the-winner-of-the-circular-game
2006-find-the-student-that-will-replace-the-chalk
2067-maximum-number-of-points-with-cost
2132-convert-1d-array-into-2d-array
2155-find-missing-observations
2163-kth-distinct-string-in-an-array
2411-spiral-matrix-iv
2502-sort-the-people
2727-number-of-senior-citizens
3501-delete-nodes-from-linked-list-present-in-array

Queue

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

Bit Manipulation

0029-divide-two-integers
0078-subsets
0090-subsets-ii
0136-single-number
0476-number-complement
2323-minimum-bit-flips-to-convert-number

Sorting

0015-3sum
0056-merge-intervals
0075-sort-colors
0088-merge-sorted-array
0217-contains-duplicate
0435-non-overlapping-intervals
0455-assign-cookies
0719-find-k-th-smallest-pair-distance
1333-sort-the-jumbled-numbers
1770-minimum-deletions-to-make-character-frequencies-unique
2502-sort-the-people
3276-minimum-number-of-pushes-to-type-word-ii

Prefix Sum

0238-product-of-array-except-self
0560-subarray-sum-equals-k
1240-stone-game-ii
1538-maximum-points-you-can-obtain-from-cards
2006-find-the-student-that-will-replace-the-chalk

Divide and Conquer

0053-maximum-subarray

Two Pointers

0011-container-with-most-water
0015-3sum
0026-remove-duplicates-from-sorted-array
0075-sort-colors
0088-merge-sorted-array
0283-move-zeroes
0455-assign-cookies
0719-find-k-th-smallest-pair-distance

Greedy

0011-container-with-most-water
0045-jump-game-ii
0055-jump-game
0135-candy
0435-non-overlapping-intervals
0455-assign-cookies
0624-maximum-distance-in-arrays
0890-lemonade-change
1700-minimum-time-to-make-rope-colorful
1770-minimum-deletions-to-make-character-frequencies-unique
3276-minimum-number-of-pushes-to-type-word-ii

Tree

0094-binary-tree-inorder-traversal
0102-binary-tree-level-order-traversal
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0776-n-ary-tree-postorder-traversal
0789-kth-largest-element-in-a-stream
1653-number-of-good-leaf-nodes-pairs

Depth-First Search

0094-binary-tree-inorder-traversal
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0776-n-ary-tree-postorder-traversal
0999-regions-cut-by-slashes
1653-number-of-good-leaf-nodes-pairs

Binary Tree

0094-binary-tree-inorder-traversal
0102-binary-tree-level-order-traversal
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0789-kth-largest-element-in-a-stream
1653-number-of-good-leaf-nodes-pairs

Matrix

0037-sudoku-solver
0870-magic-squares-in-grid
0999-regions-cut-by-slashes
1496-lucky-numbers-in-a-matrix
2132-convert-1d-array-into-2d-array
2411-spiral-matrix-iv

Trie

0139-word-break

Memoization

0139-word-break

Binary Indexed Tree

1511-count-number-of-teams

Stack

0094-binary-tree-inorder-traversal
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0776-n-ary-tree-postorder-traversal
1756-minimum-deletions-to-make-string-balanced

Sliding Window

1538-maximum-points-you-can-obtain-from-cards

Counting

2163-kth-distinct-string-in-an-array
3276-minimum-number-of-pushes-to-type-word-ii

Breadth-First Search

0102-binary-tree-level-order-traversal
0999-regions-cut-by-slashes

Union Find

0999-regions-cut-by-slashes

Design

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

Binary Search Tree

0719-find-k-th-smallest-pair-distance
0789-kth-largest-element-in-a-stream
2006-find-the-student-that-will-replace-the-chalk

Heap (Priority Queue)

0264-ugly-number-ii
0789-kth-largest-element-in-a-stream
1325-path-with-maximum-probability

Data Stream

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

Game Theory

1240-stone-game-ii

Graph

1325-path-with-maximum-probability

Shortest Path

1325-path-with-maximum-probability

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published