Skip to content

anuragparla/Leetcode-Submissions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,052 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leetcode-Submissions

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

LeetCode Topics

Array

0001-two-sum
0011-container-with-most-water
0015-3sum
0033-search-in-rotated-sorted-array
0034-find-first-and-last-position-of-element-in-sorted-array
0039-combination-sum
0049-group-anagrams
0053-maximum-subarray
0054-spiral-matrix
0055-jump-game
0074-search-a-2d-matrix
0075-sort-colors
0078-subsets
0080-remove-duplicates-from-sorted-array-ii
0088-merge-sorted-array
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0121-best-time-to-buy-and-sell-stock
0128-longest-consecutive-sequence
0135-candy
0150-evaluate-reverse-polish-notation
0153-find-minimum-in-rotated-sorted-array
0162-find-peak-element
0167-two-sum-ii-input-array-is-sorted
0198-house-robber
0215-kth-largest-element-in-an-array
0238-product-of-array-except-self
0240-search-a-2d-matrix-ii
0253-meeting-rooms-ii
0268-missing-number
0271-encode-and-decode-strings
0283-move-zeroes
0303-range-sum-query-immutable
0322-coin-change
0448-find-all-numbers-disappeared-in-an-array
0496-next-greater-element-i
0498-diagonal-traverse
0560-subarray-sum-equals-k
0643-maximum-average-subarray-i
0720-longest-word-in-dictionary
0739-daily-temperatures
0786-search-in-a-sorted-array-of-unknown-size
0816-design-hashset
0817-design-hashmap
1418-display-table-of-food-orders-in-a-restaurant
1470-shuffle-the-array
1512-number-of-good-pairs
1656-count-good-triplets
1929-concatenation-of-array
2023-number-of-pairs-of-strings-with-concatenation-equal-to-target
2225-find-players-with-zero-or-one-losses
2373-largest-local-values-in-a-matrix
3154-maximum-value-of-an-ordered-triplet-i

Binary Search

0033-search-in-rotated-sorted-array
0034-find-first-and-last-position-of-element-in-sorted-array
0074-search-a-2d-matrix
0153-find-minimum-in-rotated-sorted-array
0162-find-peak-element
0167-two-sum-ii-input-array-is-sorted
0240-search-a-2d-matrix-ii
0268-missing-number
0786-search-in-a-sorted-array-of-unknown-size

Divide and Conquer

0053-maximum-subarray
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0215-kth-largest-element-in-an-array
0240-search-a-2d-matrix-ii

Dynamic Programming

0053-maximum-subarray
0055-jump-game
0070-climbing-stairs
0121-best-time-to-buy-and-sell-stock
0198-house-robber
0322-coin-change

Matrix

0054-spiral-matrix
0074-search-a-2d-matrix
0240-search-a-2d-matrix-ii
0498-diagonal-traverse
2373-largest-local-values-in-a-matrix

Simulation

0054-spiral-matrix
0498-diagonal-traverse
1929-concatenation-of-array
2810-faulty-keyboard

Two Pointers

0011-container-with-most-water
0015-3sum
0019-remove-nth-node-from-end-of-list
0075-sort-colors
0080-remove-duplicates-from-sorted-array-ii
0088-merge-sorted-array
0141-linked-list-cycle
0143-reorder-list
0167-two-sum-ii-input-array-is-sorted
0234-palindrome-linked-list
0253-meeting-rooms-ii
0283-move-zeroes
1894-merge-strings-alternately

String

0003-longest-substring-without-repeating-characters
0013-roman-to-integer
0049-group-anagrams
0058-length-of-last-word
0205-isomorphic-strings
0208-implement-trie-prefix-tree
0227-basic-calculator-ii
0271-encode-and-decode-strings
0290-word-pattern
0409-longest-palindrome
0424-longest-repeating-character-replacement
0438-find-all-anagrams-in-a-string
0720-longest-word-in-dictionary
0807-custom-sort-string
1418-display-table-of-food-orders-in-a-restaurant
1894-merge-strings-alternately
2023-number-of-pairs-of-strings-with-concatenation-equal-to-target
2810-faulty-keyboard

Sorting

0015-3sum
0049-group-anagrams
0075-sort-colors
0088-merge-sorted-array
0215-kth-largest-element-in-an-array
0253-meeting-rooms-ii
0268-missing-number
0720-longest-word-in-dictionary
0807-custom-sort-string
1418-display-table-of-food-orders-in-a-restaurant
2225-find-players-with-zero-or-one-losses

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0013-roman-to-integer
0049-group-anagrams
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0128-longest-consecutive-sequence
0138-copy-list-with-random-pointer
0141-linked-list-cycle
0205-isomorphic-strings
0208-implement-trie-prefix-tree
0268-missing-number
0290-word-pattern
0359-logger-rate-limiter
0409-longest-palindrome
0424-longest-repeating-character-replacement
0438-find-all-anagrams-in-a-string
0448-find-all-numbers-disappeared-in-an-array
0496-next-greater-element-i
0560-subarray-sum-equals-k
0720-longest-word-in-dictionary
0807-custom-sort-string
0816-design-hashset
0817-design-hashmap
1418-display-table-of-food-orders-in-a-restaurant
1512-number-of-good-pairs
2023-number-of-pairs-of-strings-with-concatenation-equal-to-target
2225-find-players-with-zero-or-one-losses

Sliding Window

0003-longest-substring-without-repeating-characters
0424-longest-repeating-character-replacement
0438-find-all-anagrams-in-a-string
0643-maximum-average-subarray-i

Math

0002-add-two-numbers
0013-roman-to-integer
0070-climbing-stairs
0150-evaluate-reverse-polish-notation
0227-basic-calculator-ii
0268-missing-number
1512-number-of-good-pairs
2998-count-symmetric-integers

Stack

0094-binary-tree-inorder-traversal
0143-reorder-list
0144-binary-tree-preorder-traversal
0150-evaluate-reverse-polish-notation
0155-min-stack
0227-basic-calculator-ii
0232-implement-queue-using-stacks
0234-palindrome-linked-list
0496-next-greater-element-i
0739-daily-temperatures

Design

0155-min-stack
0208-implement-trie-prefix-tree
0232-implement-queue-using-stacks
0271-encode-and-decode-strings
0303-range-sum-query-immutable
0359-logger-rate-limiter
0816-design-hashset
0817-design-hashmap

Monotonic Stack

0496-next-greater-element-i
0739-daily-temperatures

Linked List

0002-add-two-numbers
0019-remove-nth-node-from-end-of-list
0021-merge-two-sorted-lists
0138-copy-list-with-random-pointer
0141-linked-list-cycle
0143-reorder-list
0206-reverse-linked-list
0234-palindrome-linked-list
0816-design-hashset
0817-design-hashmap

Recursion

0002-add-two-numbers
0021-merge-two-sorted-lists
0143-reorder-list
0206-reverse-linked-list
0234-palindrome-linked-list

Prefix Sum

0238-product-of-array-except-self
0253-meeting-rooms-ii
0303-range-sum-query-immutable
0560-subarray-sum-equals-k

Tree

0094-binary-tree-inorder-traversal
0098-validate-binary-search-tree
0100-same-tree
0101-symmetric-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
0113-path-sum-ii
0129-sum-root-to-leaf-numbers
0144-binary-tree-preorder-traversal
0226-invert-binary-tree
0235-lowest-common-ancestor-of-a-binary-search-tree
0543-diameter-of-binary-tree
0572-subtree-of-another-tree

Depth-First Search

0094-binary-tree-inorder-traversal
0098-validate-binary-search-tree
0100-same-tree
0101-symmetric-tree
0104-maximum-depth-of-binary-tree
0110-balanced-binary-tree
0113-path-sum-ii
0129-sum-root-to-leaf-numbers
0144-binary-tree-preorder-traversal
0207-course-schedule
0226-invert-binary-tree
0235-lowest-common-ancestor-of-a-binary-search-tree
0543-diameter-of-binary-tree
0572-subtree-of-another-tree

Breadth-First Search

0100-same-tree
0101-symmetric-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0207-course-schedule
0226-invert-binary-tree
0322-coin-change

Binary Tree

0094-binary-tree-inorder-traversal
0098-validate-binary-search-tree
0100-same-tree
0101-symmetric-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
0113-path-sum-ii
0129-sum-root-to-leaf-numbers
0144-binary-tree-preorder-traversal
0226-invert-binary-tree
0235-lowest-common-ancestor-of-a-binary-search-tree
0543-diameter-of-binary-tree
0572-subtree-of-another-tree

String Matching

0572-subtree-of-another-tree

Hash Function

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

Enumeration

1656-count-good-triplets
2998-count-symmetric-integers

Greedy

0011-container-with-most-water
0055-jump-game
0135-candy
0253-meeting-rooms-ii
0409-longest-palindrome

Queue

0232-implement-queue-using-stacks

Interactive

0786-search-in-a-sorted-array-of-unknown-size

Binary Search Tree

0098-validate-binary-search-tree
0235-lowest-common-ancestor-of-a-binary-search-tree

Backtracking

0039-combination-sum
0078-subsets
0113-path-sum-ii

Graph

0207-course-schedule

Topological Sort

0207-course-schedule

Bit Manipulation

0078-subsets
0268-missing-number

Data Stream

0359-logger-rate-limiter

Trie

0208-implement-trie-prefix-tree
0720-longest-word-in-dictionary

Heap (Priority Queue)

0215-kth-largest-element-in-an-array
0253-meeting-rooms-ii

Quickselect

0215-kth-largest-element-in-an-array

Memoization

0070-climbing-stairs

Union-Find

0128-longest-consecutive-sequence

Counting

1512-number-of-good-pairs
2023-number-of-pairs-of-strings-with-concatenation-equal-to-target
2225-find-players-with-zero-or-one-losses

Ordered Set

1418-display-table-of-food-orders-in-a-restaurant

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors