Skip to content

This repository contains my solution of LeetCode's Problem of the Day and more.

Notifications You must be signed in to change notification settings

Eshitacodes/LEETCODE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LEETCODE

This repository contains my solutions of LeetCode problems.

LeetCode Topics

Array

0033-search-in-rotated-sorted-array
0039-combination-sum
0048-rotate-image
0053-maximum-subarray
0121-best-time-to-buy-and-sell-stock
0217-contains-duplicate
0238-product-of-array-except-self
0268-missing-number
0787-sliding-puzzle
0817-design-hashmap
0892-shortest-subarray-with-sum-at-least-k
0952-word-subsets
1147-flip-columns-for-maximum-number-of-equal-rows
1468-check-if-n-and-its-double-exist
1679-shortest-subarray-to-be-removed-to-make-array-sorted
1755-defuse-the-bomb
1940-maximum-xor-for-each-query
1972-rotating-the-box
2089-maximum-matrix-sum
2179-most-beautiful-item-for-each-query
2188-minimized-maximum-of-products-distributed-to-any-store
2232-adding-spaces-to-a-string
2343-count-unguarded-cells-in-the-grid
2356-largest-combination-with-bitwise-and-greater-than-zero
2375-minimum-obstacle-removal-to-reach-corner
2552-maximum-sum-of-distinct-subarrays-with-length-k
2581-divide-players-into-teams-of-equal-skill
2699-count-the-number-of-fair-pairs
2711-minimum-time-to-visit-a-cell-in-a-grid
2716-prime-subtraction-operation
3291-find-if-array-can-be-sorted
3380-shortest-subarray-with-or-at-least-k-ii
3517-shortest-distance-after-road-addition-queries-i
3522-find-the-power-of-k-size-subarrays-i

Dynamic Programming

0053-maximum-subarray
0121-best-time-to-buy-and-sell-stock

Hash Table

0141-linked-list-cycle
0217-contains-duplicate
0268-missing-number
0817-design-hashmap
0952-word-subsets
1147-flip-columns-for-maximum-number-of-equal-rows
1468-check-if-n-and-its-double-exist
2356-largest-combination-with-bitwise-and-greater-than-zero
2552-maximum-sum-of-distinct-subarrays-with-length-k
2581-divide-players-into-teams-of-equal-skill
2599-take-k-of-each-character-from-left-and-right

Linked List

0002-add-two-numbers
0019-remove-nth-node-from-end-of-list
0021-merge-two-sorted-lists
0141-linked-list-cycle
0206-reverse-linked-list
0817-design-hashmap

Two Pointers

0019-remove-nth-node-from-end-of-list
0141-linked-list-cycle
1468-check-if-n-and-its-double-exist
1566-check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence
1679-shortest-subarray-to-be-removed-to-make-array-sorted
1972-rotating-the-box
2232-adding-spaces-to-a-string
2581-divide-players-into-teams-of-equal-skill
2699-count-the-number-of-fair-pairs
3018-make-string-a-subsequence-using-cyclic-increments

Recursion

0002-add-two-numbers
0021-merge-two-sorted-lists
0206-reverse-linked-list

String

0020-valid-parentheses
0812-rotate-string
0952-word-subsets
1302-delete-characters-to-make-fancy-string
1566-check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence
2232-adding-spaces-to-a-string
2580-circular-sentence
2599-take-k-of-each-character-from-left-and-right
3018-make-string-a-subsequence-using-cyclic-increments
3174-minimum-number-of-changes-to-make-binary-string-beautiful
3451-string-compression-iii

Stack

0020-valid-parentheses
1679-shortest-subarray-to-be-removed-to-make-array-sorted

Divide and Conquer

0053-maximum-subarray
0191-number-of-1-bits

Bit Manipulation

0191-number-of-1-bits
0268-missing-number
1940-maximum-xor-for-each-query
2356-largest-combination-with-bitwise-and-greater-than-zero
3291-find-if-array-can-be-sorted
3380-shortest-subarray-with-or-at-least-k-ii
3394-minimum-array-end

Math

0002-add-two-numbers
0048-rotate-image
0223-rectangle-area
0268-missing-number
2716-prime-subtraction-operation

Binary Search

0033-search-in-rotated-sorted-array
0268-missing-number
0892-shortest-subarray-with-sum-at-least-k
1468-check-if-n-and-its-double-exist
1679-shortest-subarray-to-be-removed-to-make-array-sorted
2179-most-beautiful-item-for-each-query
2188-minimized-maximum-of-products-distributed-to-any-store
2699-count-the-number-of-fair-pairs
2716-prime-subtraction-operation

Sorting

0217-contains-duplicate
0268-missing-number
1468-check-if-n-and-its-double-exist
2179-most-beautiful-item-for-each-query
2581-divide-players-into-teams-of-equal-skill
2699-count-the-number-of-fair-pairs
3291-find-if-array-can-be-sorted

Backtracking

0039-combination-sum

Tree

0100-same-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0226-invert-binary-tree
0543-diameter-of-binary-tree
0572-subtree-of-another-tree

Depth-First Search

0100-same-tree
0104-maximum-depth-of-binary-tree
0226-invert-binary-tree
0543-diameter-of-binary-tree
0572-subtree-of-another-tree
2201-valid-arrangement-of-pairs

Breadth-First Search

0100-same-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0226-invert-binary-tree
0787-sliding-puzzle
2375-minimum-obstacle-removal-to-reach-corner
2711-minimum-time-to-visit-a-cell-in-a-grid
3517-shortest-distance-after-road-addition-queries-i

Binary Tree

0100-same-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0226-invert-binary-tree
0543-diameter-of-binary-tree
0572-subtree-of-another-tree

String Matching

0572-subtree-of-another-tree
0812-rotate-string
1566-check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence

Counting

2356-largest-combination-with-bitwise-and-greater-than-zero

Prefix Sum

0238-product-of-array-except-self
0892-shortest-subarray-with-sum-at-least-k
1940-maximum-xor-for-each-query

Sliding Window

0892-shortest-subarray-with-sum-at-least-k
1755-defuse-the-bomb
2552-maximum-sum-of-distinct-subarrays-with-length-k
2599-take-k-of-each-character-from-left-and-right
3380-shortest-subarray-with-or-at-least-k-ii
3522-find-the-power-of-k-size-subarrays-i

Greedy

2089-maximum-matrix-sum
2716-prime-subtraction-operation

Number Theory

2716-prime-subtraction-operation

Monotonic Stack

1679-shortest-subarray-to-be-removed-to-make-array-sorted

Queue

0892-shortest-subarray-with-sum-at-least-k

Heap (Priority Queue)

0892-shortest-subarray-with-sum-at-least-k
2375-minimum-obstacle-removal-to-reach-corner
2711-minimum-time-to-visit-a-cell-in-a-grid

Monotonic Queue

0892-shortest-subarray-with-sum-at-least-k

Matrix

0048-rotate-image
0787-sliding-puzzle
1147-flip-columns-for-maximum-number-of-equal-rows
1972-rotating-the-box
2089-maximum-matrix-sum
2343-count-unguarded-cells-in-the-grid
2375-minimum-obstacle-removal-to-reach-corner
2711-minimum-time-to-visit-a-cell-in-a-grid

Simulation

2232-adding-spaces-to-a-string
2343-count-unguarded-cells-in-the-grid

Graph

2201-valid-arrangement-of-pairs
2375-minimum-obstacle-removal-to-reach-corner
2711-minimum-time-to-visit-a-cell-in-a-grid
3189-find-champion-ii
3517-shortest-distance-after-road-addition-queries-i

Shortest Path

2375-minimum-obstacle-removal-to-reach-corner
2711-minimum-time-to-visit-a-cell-in-a-grid

Eulerian Circuit

2201-valid-arrangement-of-pairs

Hash Function

0572-subtree-of-another-tree
0817-design-hashmap

Geometry

0223-rectangle-area

Design

0817-design-hashmap

About

This repository contains my solution of LeetCode's Problem of the Day and more.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published