Skip to content

aniketwattamwar/Leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

366 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leetcode Problems Solved

The py files are solved leetcode problems.

LeetCode Topics

Array

0033-search-in-rotated-sorted-array
0039-combination-sum
0040-combination-sum-ii
0046-permutations
0049-group-anagrams
0053-maximum-subarray
0078-subsets
0079-word-search
0084-largest-rectangle-in-histogram
0090-subsets-ii
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0162-find-peak-element
0198-house-robber
0200-number-of-islands
0215-kth-largest-element-in-an-array
0239-sliding-window-maximum
0284-peeking-iterator
0322-coin-change
0347-top-k-frequent-elements
0448-find-all-numbers-disappeared-in-an-array
0518-coin-change-ii
0695-max-area-of-island
0713-subarray-product-less-than-k
0752-open-the-lock
0794-swim-in-rising-water
0816-design-hashset
0817-design-hashmap
1014-k-closest-points-to-origin
1127-last-stone-weight
1438-longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit
1825-find-minimum-time-to-finish-all-jobs
1972-rotating-the-box
2065-maximum-path-quality-of-a-graph
2169-simple-bank-system
2779-number-of-adjacent-elements-with-the-same-color
2889-number-of-black-blocks
3269-number-of-subarrays-that-match-a-pattern-i

Hash Table

0003-longest-substring-without-repeating-characters
0017-letter-combinations-of-a-phone-number
0049-group-anagrams
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0127-word-ladder
0146-lru-cache
0187-repeated-dna-sequences
0347-top-k-frequent-elements
0438-find-all-anagrams-in-a-string
0448-find-all-numbers-disappeared-in-an-array
0752-open-the-lock
0816-design-hashset
0817-design-hashmap
0981-time-based-key-value-store
1023-time-based-key-value-store
2169-simple-bank-system
2889-number-of-black-blocks

Linked List

0146-lru-cache
0816-design-hashset
0817-design-hashmap

Design

0146-lru-cache
0155-min-stack
0211-design-add-and-search-words-data-structure
0232-implement-queue-using-stacks
0284-peeking-iterator
0295-find-median-from-data-stream
0297-serialize-and-deserialize-binary-tree
0789-kth-largest-element-in-a-stream
0816-design-hashset
0817-design-hashmap
0981-time-based-key-value-store
1023-time-based-key-value-store
2169-simple-bank-system

Hash Function

0187-repeated-dna-sequences
0572-subtree-of-another-tree
0816-design-hashset
0817-design-hashmap
3269-number-of-subarrays-that-match-a-pattern-i

Stack

0084-largest-rectangle-in-histogram
0155-min-stack
0232-implement-queue-using-stacks
1209-remove-all-adjacent-duplicates-in-string-ii

Queue

0232-implement-queue-using-stacks
0239-sliding-window-maximum
1438-longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit

Binary Search

0033-search-in-rotated-sorted-array
0162-find-peak-element
0713-subarray-product-less-than-k
0794-swim-in-rising-water
0981-time-based-key-value-store
1023-time-based-key-value-store

Dynamic Programming

0053-maximum-subarray
0131-palindrome-partitioning
0198-house-robber
0322-coin-change
0518-coin-change-ii
1825-find-minimum-time-to-finish-all-jobs
2472-maximum-number-of-non-overlapping-palindrome-substrings

Breadth-First Search

0100-same-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0127-word-ladder
0199-binary-tree-right-side-view
0200-number-of-islands
0207-course-schedule
0226-invert-binary-tree
0297-serialize-and-deserialize-binary-tree
0322-coin-change
0695-max-area-of-island
0752-open-the-lock
0794-swim-in-rising-water
1544-count-good-nodes-in-binary-tree

Tree

0098-validate-binary-search-tree
0100-same-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0110-balanced-binary-tree
0199-binary-tree-right-side-view
0226-invert-binary-tree
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree
0297-serialize-and-deserialize-binary-tree
0543-diameter-of-binary-tree
0572-subtree-of-another-tree
0789-kth-largest-element-in-a-stream
1544-count-good-nodes-in-binary-tree

Depth-First Search

0079-word-search
0098-validate-binary-search-tree
0100-same-tree
0104-maximum-depth-of-binary-tree
0110-balanced-binary-tree
0199-binary-tree-right-side-view
0200-number-of-islands
0207-course-schedule
0211-design-add-and-search-words-data-structure
0226-invert-binary-tree
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree
0297-serialize-and-deserialize-binary-tree
0543-diameter-of-binary-tree
0572-subtree-of-another-tree
0695-max-area-of-island
0794-swim-in-rising-water
1544-count-good-nodes-in-binary-tree

Binary Tree

0098-validate-binary-search-tree
0100-same-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0110-balanced-binary-tree
0199-binary-tree-right-side-view
0226-invert-binary-tree
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree
0297-serialize-and-deserialize-binary-tree
0543-diameter-of-binary-tree
0572-subtree-of-another-tree
0789-kth-largest-element-in-a-stream
1544-count-good-nodes-in-binary-tree

Binary Search Tree

0098-validate-binary-search-tree
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree
0789-kth-largest-element-in-a-stream

String Matching

0003-longest-substring-without-repeating-characters
0017-letter-combinations-of-a-phone-number
0049-group-anagrams
0079-word-search
0127-word-ladder
0131-palindrome-partitioning
0187-repeated-dna-sequences
0211-design-add-and-search-words-data-structure
0297-serialize-and-deserialize-binary-tree
0438-find-all-anagrams-in-a-string
0572-subtree-of-another-tree
0752-open-the-lock
0981-time-based-key-value-store
1023-time-based-key-value-store
1209-remove-all-adjacent-duplicates-in-string-ii
2472-maximum-number-of-non-overlapping-palindrome-substrings
3269-number-of-subarrays-that-match-a-pattern-i

Divide and Conquer

0053-maximum-subarray
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0215-kth-largest-element-in-an-array
0347-top-k-frequent-elements
1014-k-closest-points-to-origin

Heap (Priority Queue)

0215-kth-largest-element-in-an-array
0239-sliding-window-maximum
0295-find-median-from-data-stream
0347-top-k-frequent-elements
0789-kth-largest-element-in-a-stream
0794-swim-in-rising-water
1014-k-closest-points-to-origin
1127-last-stone-weight
1438-longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit

Data Stream

0295-find-median-from-data-stream
0789-kth-largest-element-in-a-stream

Math

1014-k-closest-points-to-origin

Geometry

1014-k-closest-points-to-origin

Sorting

0049-group-anagrams
0215-kth-largest-element-in-an-array
0295-find-median-from-data-stream
0347-top-k-frequent-elements
1014-k-closest-points-to-origin

Quickselect

0215-kth-largest-element-in-an-array
0347-top-k-frequent-elements
1014-k-closest-points-to-origin

Backtracking

0017-letter-combinations-of-a-phone-number
0039-combination-sum
0040-combination-sum-ii
0046-permutations
0078-subsets
0079-word-search
0090-subsets-ii
0131-palindrome-partitioning
1825-find-minimum-time-to-finish-all-jobs
2065-maximum-path-quality-of-a-graph

Bit Manipulation

0078-subsets
0090-subsets-ii
0187-repeated-dna-sequences
1825-find-minimum-time-to-finish-all-jobs

Matrix

0079-word-search
0200-number-of-islands
0695-max-area-of-island
0794-swim-in-rising-water
1972-rotating-the-box

Simulation

2169-simple-bank-system

Monotonic Stack

0084-largest-rectangle-in-histogram

Enumeration

2889-number-of-black-blocks

Rolling Hash

0187-repeated-dna-sequences
3269-number-of-subarrays-that-match-a-pattern-i

Two Pointers

0295-find-median-from-data-stream
1972-rotating-the-box
2472-maximum-number-of-non-overlapping-palindrome-substrings

Sliding Window

0003-longest-substring-without-repeating-characters
0187-repeated-dna-sequences
0239-sliding-window-maximum
0438-find-all-anagrams-in-a-string
0713-subarray-product-less-than-k
1438-longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit

Union Find

0200-number-of-islands
0695-max-area-of-island
0794-swim-in-rising-water

Graph

0207-course-schedule
2065-maximum-path-quality-of-a-graph

Topological Sort

0207-course-schedule

Doubly-Linked List

0146-lru-cache

Bitmask

1825-find-minimum-time-to-finish-all-jobs

Iterator

0284-peeking-iterator

Prefix Sum

0713-subarray-product-less-than-k

Bucket Sort

0347-top-k-frequent-elements

Counting

0347-top-k-frequent-elements

Trie

0211-design-add-and-search-words-data-structure

Ordered Set

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

Monotonic Queue

0239-sliding-window-maximum
1438-longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit

Greedy

2472-maximum-number-of-non-overlapping-palindrome-substrings

About

Questions solved and YouTube videos for the solved questions

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages