Skip to content

Varsha1407/Leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A collection of LeetCode questions to ace the coding interview! - Created using LeetHub v2

LeetCode Topics

Array

0001-two-sum
0004-median-of-two-sorted-arrays
0011-container-with-most-water
0039-combination-sum
0048-rotate-image
0053-maximum-subarray
0054-spiral-matrix
0055-jump-game
0056-merge-intervals
0057-insert-interval
0073-set-matrix-zeroes
0079-word-search
0128-longest-consecutive-sequence
0134-gas-station
0139-word-break
0162-find-peak-element
0198-house-robber
0200-number-of-islands
0213-house-robber-ii
0215-kth-largest-element-in-an-array
0238-product-of-array-except-self
0268-missing-number
0283-move-zeroes
0300-longest-increasing-subsequence
0322-coin-change
0334-increasing-triplet-subsequence
0347-top-k-frequent-elements
0417-pacific-atlantic-water-flow
0435-non-overlapping-intervals
0452-minimum-number-of-arrows-to-burst-balloons
0560-subarray-sum-equals-k
0605-can-place-flowers
0621-task-scheduler
0695-max-area-of-island
0724-find-pivot-index
0739-daily-temperatures
1073-number-of-enclaves
1319-unique-number-of-occurrences
1392-find-the-difference-of-two-arrays
1528-kids-with-the-greatest-number-of-candies
1833-find-the-highest-altitude

Two Pointers

0005-longest-palindromic-substring
0011-container-with-most-water
0019-remove-nth-node-from-end-of-list
0028-find-the-index-of-the-first-occurrence-in-a-string
0141-linked-list-cycle
0143-reorder-list
0151-reverse-words-in-a-string
0283-move-zeroes
0295-find-median-from-data-stream
0345-reverse-vowels-of-a-string
0392-is-subsequence
0443-string-compression
0647-palindromic-substrings
1894-merge-strings-alternately
2216-delete-the-middle-node-of-a-linked-list

String

0005-longest-palindromic-substring
0020-valid-parentheses
0028-find-the-index-of-the-first-occurrence-in-a-string
0079-word-search
0091-decode-ways
0139-word-break
0151-reverse-words-in-a-string
0208-implement-trie-prefix-tree
0297-serialize-and-deserialize-binary-tree
0345-reverse-vowels-of-a-string
0392-is-subsequence
0394-decode-string
0424-longest-repeating-character-replacement
0443-string-compression
0647-palindromic-substrings
0686-repeated-string-match
0957-minimum-add-to-make-parentheses-valid
1146-greatest-common-divisor-of-strings
1250-longest-common-subsequence
1894-merge-strings-alternately
2470-removing-stars-from-a-string

Math

0009-palindrome-number
0048-rotate-image
0062-unique-paths
0070-climbing-stairs
0268-missing-number
0371-sum-of-two-integers
1146-greatest-common-divisor-of-strings

Greedy

0011-container-with-most-water
0055-jump-game
0134-gas-station
0334-increasing-triplet-subsequence
0435-non-overlapping-intervals
0452-minimum-number-of-arrows-to-burst-balloons
0605-can-place-flowers
0621-task-scheduler
0957-minimum-add-to-make-parentheses-valid

Prefix Sum

0238-product-of-array-except-self
0560-subarray-sum-equals-k
0724-find-pivot-index
1833-find-the-highest-altitude

Binary Search

0004-median-of-two-sorted-arrays
0162-find-peak-element
0268-missing-number
0300-longest-increasing-subsequence
0374-guess-number-higher-or-lower

Linked List

0019-remove-nth-node-from-end-of-list
0021-merge-two-sorted-lists
0141-linked-list-cycle
0143-reorder-list
0206-reverse-linked-list
0328-odd-even-linked-list
2216-delete-the-middle-node-of-a-linked-list

Recursion

0021-merge-two-sorted-lists
0143-reorder-list
0206-reverse-linked-list
0394-decode-string

Stack

0020-valid-parentheses
0143-reorder-list
0394-decode-string
0739-daily-temperatures
0937-online-stock-span
0957-minimum-add-to-make-parentheses-valid
2470-removing-stars-from-a-string

Simulation

0054-spiral-matrix
2470-removing-stars-from-a-string

Monotonic Stack

0739-daily-temperatures
0937-online-stock-span

Design

0208-implement-trie-prefix-tree
0295-find-median-from-data-stream
0297-serialize-and-deserialize-binary-tree
0937-online-stock-span

Data Stream

0295-find-median-from-data-stream
0937-online-stock-span

Interactive

0374-guess-number-higher-or-lower

Divide and Conquer

0004-median-of-two-sorted-arrays
0053-maximum-subarray
0190-reverse-bits
0191-number-of-1-bits
0215-kth-largest-element-in-an-array
0347-top-k-frequent-elements

Sorting

0056-merge-intervals
0215-kth-largest-element-in-an-array
0268-missing-number
0295-find-median-from-data-stream
0347-top-k-frequent-elements
0435-non-overlapping-intervals
0452-minimum-number-of-arrows-to-burst-balloons
0621-task-scheduler

Heap (Priority Queue)

0215-kth-largest-element-in-an-array
0295-find-median-from-data-stream
0347-top-k-frequent-elements
0621-task-scheduler
0744-network-delay-time

Quickselect

0215-kth-largest-element-in-an-array
0347-top-k-frequent-elements

Tree

0100-same-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0124-binary-tree-maximum-path-sum
0226-invert-binary-tree
0297-serialize-and-deserialize-binary-tree
0450-delete-node-in-a-bst
0572-subtree-of-another-tree
0783-search-in-a-binary-search-tree

Binary Search Tree

0450-delete-node-in-a-bst
0783-search-in-a-binary-search-tree

Binary Tree

0100-same-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0124-binary-tree-maximum-path-sum
0226-invert-binary-tree
0297-serialize-and-deserialize-binary-tree
0450-delete-node-in-a-bst
0572-subtree-of-another-tree
0783-search-in-a-binary-search-tree

Hash Table

0001-two-sum
0073-set-matrix-zeroes
0128-longest-consecutive-sequence
0133-clone-graph
0139-word-break
0141-linked-list-cycle
0208-implement-trie-prefix-tree
0268-missing-number
0347-top-k-frequent-elements
0424-longest-repeating-character-replacement
0560-subarray-sum-equals-k
0621-task-scheduler
1319-unique-number-of-occurrences
1392-find-the-difference-of-two-arrays

Matrix

0048-rotate-image
0054-spiral-matrix
0073-set-matrix-zeroes
0079-word-search
0200-number-of-islands
0417-pacific-atlantic-water-flow
0695-max-area-of-island
1073-number-of-enclaves

Dynamic Programming

0005-longest-palindromic-substring
0053-maximum-subarray
0055-jump-game
0062-unique-paths
0070-climbing-stairs
0091-decode-ways
0124-binary-tree-maximum-path-sum
0139-word-break
0198-house-robber
0213-house-robber-ii
0300-longest-increasing-subsequence
0322-coin-change
0338-counting-bits
0392-is-subsequence
0435-non-overlapping-intervals
0647-palindromic-substrings
1250-longest-common-subsequence

Bit Manipulation

0190-reverse-bits
0191-number-of-1-bits
0268-missing-number
0338-counting-bits
0371-sum-of-two-integers

Memoization

0070-climbing-stairs
0139-word-break

Breadth-First Search

0100-same-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0133-clone-graph
0200-number-of-islands
0207-course-schedule
0226-invert-binary-tree
0297-serialize-and-deserialize-binary-tree
0322-coin-change
0417-pacific-atlantic-water-flow
0695-max-area-of-island
0744-network-delay-time
1073-number-of-enclaves

Bucket Sort

0347-top-k-frequent-elements

Counting

0347-top-k-frequent-elements
0621-task-scheduler

Combinatorics

0062-unique-paths

Trie

0139-word-break
0208-implement-trie-prefix-tree

Backtracking

0039-combination-sum
0079-word-search

Depth-First Search

0079-word-search
0100-same-tree
0104-maximum-depth-of-binary-tree
0124-binary-tree-maximum-path-sum
0133-clone-graph
0200-number-of-islands
0207-course-schedule
0226-invert-binary-tree
0297-serialize-and-deserialize-binary-tree
0417-pacific-atlantic-water-flow
0572-subtree-of-another-tree
0695-max-area-of-island
0744-network-delay-time
1073-number-of-enclaves

Graph

0133-clone-graph
0207-course-schedule
0744-network-delay-time

Topological Sort

0207-course-schedule

Union Find

0128-longest-consecutive-sequence
0200-number-of-islands
0695-max-area-of-island
1073-number-of-enclaves

Shortest Path

0744-network-delay-time

String Matching

0028-find-the-index-of-the-first-occurrence-in-a-string
0572-subtree-of-another-tree
0686-repeated-string-match

Hash Function

0572-subtree-of-another-tree

Sliding Window

0424-longest-repeating-character-replacement

Database

0175-combine-two-tables
0176-second-highest-salary
0177-nth-highest-salary
0178-rank-scores
0181-employees-earning-more-than-their-managers
0183-customers-who-never-order
0586-customer-placing-the-largest-number-of-orders
0596-classes-with-at-least-5-students

About

My Leetcode solutions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published