Skip to content

rm206/LeetCode-solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode-solutions

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

Greedy

2379-maximum-total-importance-of-roads

Graph

2379-maximum-total-importance-of-roads

Sorting

2379-maximum-total-importance-of-roads

Heap (Priority Queue)

2379-maximum-total-importance-of-roads

LeetCode Topics

Array

0001-two-sum
0011-container-with-most-water
0014-longest-common-prefix
0015-3sum
0026-remove-duplicates-from-sorted-array
0027-remove-element
0033-search-in-rotated-sorted-array
0039-combination-sum
0048-rotate-image
0049-group-anagrams
0056-merge-intervals
0057-insert-interval
0079-word-search
0121-best-time-to-buy-and-sell-stock
0128-longest-consecutive-sequence
0136-single-number
0153-find-minimum-in-rotated-sorted-array
0189-rotate-array
0200-number-of-islands
0217-contains-duplicate
0238-product-of-array-except-self
0239-sliding-window-maximum
0268-missing-number
0283-move-zeroes
0347-top-k-frequent-elements
0350-intersection-of-two-arrays-ii
0485-max-consecutive-ones
0733-flood-fill
0816-design-hashset
0907-koko-eating-bananas
1056-capacity-to-ship-packages-within-d-days
1435-xor-queries-of-a-subarray
2392-successful-pairs-of-spells-and-potions
2727-number-of-senior-citizens
3242-count-elements-with-maximum-frequency
3612-adjacent-increasing-subarrays-detection-i
3619-adjacent-increasing-subarrays-detection-ii

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0049-group-anagrams
0128-longest-consecutive-sequence
0141-linked-list-cycle
0217-contains-duplicate
0242-valid-anagram
0268-missing-number
0347-top-k-frequent-elements
0350-intersection-of-two-arrays-ii
0424-longest-repeating-character-replacement
0816-design-hashset
3242-count-elements-with-maximum-frequency

Two Pointers

0011-container-with-most-water
0015-3sum
0026-remove-duplicates-from-sorted-array
0027-remove-element
0125-valid-palindrome
0141-linked-list-cycle
0143-reorder-list
0189-rotate-array
0234-palindrome-linked-list
0283-move-zeroes
0350-intersection-of-two-arrays-ii
2392-successful-pairs-of-spells-and-potions

Binary Search

0033-search-in-rotated-sorted-array
0153-find-minimum-in-rotated-sorted-array
0268-missing-number
0350-intersection-of-two-arrays-ii
0907-koko-eating-bananas
1056-capacity-to-ship-packages-within-d-days
2392-successful-pairs-of-spells-and-potions
3619-adjacent-increasing-subarrays-detection-ii

Sorting

0015-3sum
0049-group-anagrams
0056-merge-intervals
0217-contains-duplicate
0242-valid-anagram
0268-missing-number
0347-top-k-frequent-elements
0350-intersection-of-two-arrays-ii
2392-successful-pairs-of-spells-and-potions

Depth-First Search

0079-word-search
0098-validate-binary-search-tree
0100-same-tree
0104-maximum-depth-of-binary-tree
0200-number-of-islands
0226-invert-binary-tree
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree
0572-subtree-of-another-tree
0733-flood-fill

Breadth-First Search

0100-same-tree
0104-maximum-depth-of-binary-tree
0200-number-of-islands
0226-invert-binary-tree
0733-flood-fill

Union Find

0128-longest-consecutive-sequence
0200-number-of-islands

Matrix

0048-rotate-image
0079-word-search
0200-number-of-islands
0733-flood-fill

Linked List

0021-merge-two-sorted-lists
0023-merge-k-sorted-lists
0141-linked-list-cycle
0143-reorder-list
0206-reverse-linked-list
0234-palindrome-linked-list
0816-design-hashset

Stack

0020-valid-parentheses
0143-reorder-list
0225-implement-stack-using-queues
0234-palindrome-linked-list

Recursion

0021-merge-two-sorted-lists
0143-reorder-list
0206-reverse-linked-list
0234-palindrome-linked-list
1013-fibonacci-number

String

0003-longest-substring-without-repeating-characters
0014-longest-common-prefix
0020-valid-parentheses
0049-group-anagrams
0079-word-search
0125-valid-palindrome
0242-valid-anagram
0424-longest-repeating-character-replacement
2727-number-of-senior-citizens

Queue

0225-implement-stack-using-queues
0239-sliding-window-maximum

Sliding Window

0003-longest-substring-without-repeating-characters
0239-sliding-window-maximum
0424-longest-repeating-character-replacement

Heap (Priority Queue)

0023-merge-k-sorted-lists
0239-sliding-window-maximum
0347-top-k-frequent-elements

Monotonic Queue

0239-sliding-window-maximum

Design

0225-implement-stack-using-queues
0816-design-hashset

Bit Manipulation

0136-single-number
0268-missing-number
1435-xor-queries-of-a-subarray

Prefix Sum

0238-product-of-array-except-self
1435-xor-queries-of-a-subarray

Math

0007-reverse-integer
0048-rotate-image
0189-rotate-array
0268-missing-number
1013-fibonacci-number

Dynamic Programming

0121-best-time-to-buy-and-sell-stock
1013-fibonacci-number

Memoization

1013-fibonacci-number

Divide and Conquer

0023-merge-k-sorted-lists
0347-top-k-frequent-elements

Bucket Sort

0347-top-k-frequent-elements

Counting

0347-top-k-frequent-elements
3242-count-elements-with-maximum-frequency

Quickselect

0347-top-k-frequent-elements

Greedy

0011-container-with-most-water

Merge Sort

0023-merge-k-sorted-lists

Tree

0098-validate-binary-search-tree
0100-same-tree
0104-maximum-depth-of-binary-tree
0226-invert-binary-tree
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree
0572-subtree-of-another-tree

Binary Tree

0098-validate-binary-search-tree
0100-same-tree
0104-maximum-depth-of-binary-tree
0226-invert-binary-tree
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree
0572-subtree-of-another-tree

String Matching

0572-subtree-of-another-tree

Hash Function

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

Binary Search Tree

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

Backtracking

0039-combination-sum
0079-word-search

Trie

0014-longest-common-prefix

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

No packages published