Skip to content

iamarghamallick/LeetCode-Solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode-Solutions

Auto-Updated with LeetHub

LeetCode Topics

Dynamic Programming

0010-regular-expression-matching
0118-pascals-triangle
0826-soup-servings
0934-bitwise-ors-of-subarrays
2028-the-earliest-and-latest-rounds-where-players-compete
2267-minimum-difference-in-sums-after-removal-of-elements
2882-ways-to-express-an-integer-as-sum-of-powers
3490-find-the-maximum-length-of-valid-subsequence-i
3491-find-the-maximum-length-of-valid-subsequence-ii
3648-find-the-maximum-number-of-fruits-collected

Memoization

2028-the-earliest-and-latest-rounds-where-players-compete

Array

0047-permutations-ii
0108-convert-sorted-array-to-binary-search-tree
0118-pascals-triangle
0934-bitwise-ors-of-subarrays
0940-fruit-into-baskets
1350-remove-sub-folders-from-the-filesystem
1813-maximum-erasure-value
2079-delete-duplicate-folders-in-system
2170-count-number-of-maximum-bitwise-or-subsets
2229-maximum-fruits-harvested-after-at-most-k-steps
2267-minimum-difference-in-sums-after-removal-of-elements
2316-count-hills-and-valleys-in-an-array
2400-minimum-score-after-removals-on-a-tree
2497-maximum-matching-of-players-with-trainers
2498-smallest-subarrays-with-maximum-bitwise-or
2503-longest-subarray-with-maximum-bitwise-and
2529-range-product-queries-of-powers
2689-rearranging-fruits
3490-find-the-maximum-length-of-valid-subsequence-i
3491-find-the-maximum-length-of-valid-subsequence-ii
3648-find-the-maximum-number-of-fruits-collected
3788-maximum-unique-subarray-sum-after-deletion
3789-maximize-subarrays-after-removing-one-conflicting-pair
3790-fruits-into-baskets-ii
3791-fruits-into-baskets-iii

Two Pointers

0160-intersection-of-two-linked-lists
2497-maximum-matching-of-players-with-trainers

Greedy

1818-maximum-score-from-removing-substrings
2497-maximum-matching-of-players-with-trainers
2689-rearranging-fruits
3788-maximum-unique-subarray-sum-after-deletion

Sorting

0047-permutations-ii
0900-reordered-power-of-2
2497-maximum-matching-of-players-with-trainers
2689-rearranging-fruits

String

0006-zigzag-conversion
0008-string-to-integer-atoi
0010-regular-expression-matching
0012-integer-to-roman
0168-excel-sheet-column-title
0171-excel-sheet-column-number
1302-delete-characters-to-make-fancy-string
1350-remove-sub-folders-from-the-filesystem
1818-maximum-score-from-removing-substrings
2079-delete-duplicate-folders-in-system
2346-largest-3-same-digit-number-in-string
3396-valid-word

Recursion

0010-regular-expression-matching
0231-power-of-two
0326-power-of-three

Linked List

0160-intersection-of-two-linked-lists
1411-convert-binary-number-in-a-linked-list-to-integer

Math

0012-integer-to-roman
0168-excel-sheet-column-title
0171-excel-sheet-column-number
0231-power-of-two
0326-power-of-three
0826-soup-servings
0900-reordered-power-of-2
1411-convert-binary-number-in-a-linked-list-to-integer

Heap (Priority Queue)

2267-minimum-difference-in-sums-after-removal-of-elements

Depth-First Search

0110-balanced-binary-tree
0111-minimum-depth-of-binary-tree
0112-path-sum
0144-binary-tree-preorder-traversal
1350-remove-sub-folders-from-the-filesystem
2400-minimum-score-after-removals-on-a-tree

Trie

1350-remove-sub-folders-from-the-filesystem
2079-delete-duplicate-folders-in-system

Hash Table

0012-integer-to-roman
0160-intersection-of-two-linked-lists
0900-reordered-power-of-2
0940-fruit-into-baskets
1813-maximum-erasure-value
2079-delete-duplicate-folders-in-system
2689-rearranging-fruits
3788-maximum-unique-subarray-sum-after-deletion

Hash Function

2079-delete-duplicate-folders-in-system

Sliding Window

0940-fruit-into-baskets
1813-maximum-erasure-value
2229-maximum-fruits-harvested-after-at-most-k-steps
2498-smallest-subarrays-with-maximum-bitwise-or

Stack

0144-binary-tree-preorder-traversal
1818-maximum-score-from-removing-substrings

Bit Manipulation

0190-reverse-bits
0231-power-of-two
0934-bitwise-ors-of-subarrays
2170-count-number-of-maximum-bitwise-or-subsets
2400-minimum-score-after-removals-on-a-tree
2498-smallest-subarrays-with-maximum-bitwise-or
2503-longest-subarray-with-maximum-bitwise-and
2529-range-product-queries-of-powers

Tree

0108-convert-sorted-array-to-binary-search-tree
0110-balanced-binary-tree
0111-minimum-depth-of-binary-tree
0112-path-sum
0144-binary-tree-preorder-traversal
2400-minimum-score-after-removals-on-a-tree

Segment Tree

3789-maximize-subarrays-after-removing-one-conflicting-pair
3790-fruits-into-baskets-ii
3791-fruits-into-baskets-iii

Enumeration

0900-reordered-power-of-2
2170-count-number-of-maximum-bitwise-or-subsets
3789-maximize-subarrays-after-removing-one-conflicting-pair

Prefix Sum

2229-maximum-fruits-harvested-after-at-most-k-steps
2529-range-product-queries-of-powers
3789-maximize-subarrays-after-removing-one-conflicting-pair

Divide and Conquer

0108-convert-sorted-array-to-binary-search-tree
0190-reverse-bits

Binary Search Tree

0108-convert-sorted-array-to-binary-search-tree
2229-maximum-fruits-harvested-after-at-most-k-steps
2498-smallest-subarrays-with-maximum-bitwise-or
3790-fruits-into-baskets-ii
3791-fruits-into-baskets-iii

Binary Tree

0108-convert-sorted-array-to-binary-search-tree
0110-balanced-binary-tree
0111-minimum-depth-of-binary-tree
0112-path-sum
0144-binary-tree-preorder-traversal

Breadth-First Search

0111-minimum-depth-of-binary-tree
0112-path-sum

Backtracking

0047-permutations-ii
2170-count-number-of-maximum-bitwise-or-subsets

Database

0175-combine-two-tables
0181-employees-earning-more-than-their-managers
0182-duplicate-emails
0183-customers-who-never-order
0196-delete-duplicate-emails

Brainteaser

2503-longest-subarray-with-maximum-bitwise-and

Simulation

3790-fruits-into-baskets-ii

Ordered Set

3790-fruits-into-baskets-ii
3791-fruits-into-baskets-iii

Matrix

3648-find-the-maximum-number-of-fruits-collected

Probability and Statistics

0826-soup-servings

Counting

0900-reordered-power-of-2