Skip to content

sharanyazx/Leetcode-solved

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leetcode-solved

LeetCode Stats

LeetCode Topics

Database

0178-rank-scores
0180-consecutive-numbers
0184-department-highest-salary
0185-department-top-three-salaries
0570-managers-with-at-least-5-direct-reports
0584-find-customer-referee
0585-investments-in-2016
0586-customer-placing-the-largest-number-of-orders
0602-friend-requests-ii-who-has-the-most-friends
0610-triangle-judgement
0619-biggest-single-number
0626-exchange-seats
1135-customers-who-bought-all-products
1136-actors-and-directors-who-cooperated-at-least-three-times
1155-product-sales-analysis-iii
1161-project-employees-i
1245-user-activity-for-the-past-30-days-i
1258-article-views-i
1278-product-price-at-a-given-date
1292-immediate-food-delivery-ii
1317-monthly-transactions-i
1327-last-person-to-fit-in-the-bus
1338-queries-quality-and-percentage
1390-average-selling-price
1452-restaurant-growth
1462-list-the-products-ordered-in-a-period
1480-movie-rating
1625-group-sold-products-by-the-date
1837-daily-leads-and-partners
1877-find-followers-count
1882-the-number-of-employees-which-report-to-each-employee
1892-find-total-time-spent-by-each-employee
1908-recyclable-and-low-fat-products
2087-confirmation-rate
2127-employees-whose-manager-left-the-company
2495-number-of-unique-subjects-taught-by-each-teacher

Array

0004-median-of-two-sorted-arrays
0011-container-with-most-water
0033-search-in-rotated-sorted-array
0039-combination-sum
0049-group-anagrams
0053-maximum-subarray
0088-merge-sorted-array
0121-best-time-to-buy-and-sell-stock
0135-candy
0136-single-number
0167-two-sum-ii-input-array-is-sorted
0189-rotate-array
0198-house-robber
0204-count-primes
0213-house-robber-ii
0268-missing-number
0283-move-zeroes
0300-longest-increasing-subsequence
0334-increasing-triplet-subsequence
0349-intersection-of-two-arrays
0350-intersection-of-two-arrays-ii
0407-trapping-rain-water-ii
0414-third-maximum-number
0695-max-area-of-island
0978-valid-mountain-array
1231-replace-elements-with-greatest-element-on-right-side
1305-number-of-visible-people-in-a-queue
1485-minimum-cost-to-make-at-least-one-valid-path-in-a-grid
1524-string-matching-in-an-array
1584-average-salary-excluding-the-minimum-and-maximum-salary
1635-number-of-good-pairs
1819-construct-the-lexicographically-largest-valid-sequence
2048-build-array-from-permutation
2058-concatenation-of-array
2137-final-value-of-variable-after-performing-operations
2283-sort-even-and-odd-indices-independently
2533-bitwise-xor-of-all-pairings
2766-find-the-prefix-common-array-of-two-arrays
2792-neighboring-bitwise-xor
3428-find-the-xor-of-numbers-which-appear-twice
3476-find-minimum-operations-to-make-all-elements-divisible-by-three

Greedy

0011-container-with-most-water
0135-candy
0334-increasing-triplet-subsequence

Two Pointers

0011-container-with-most-water
0028-find-the-index-of-the-first-occurrence-in-a-string
0088-merge-sorted-array
0151-reverse-words-in-a-string
0167-two-sum-ii-input-array-is-sorted
0189-rotate-array
0234-palindrome-linked-list
0283-move-zeroes
0349-intersection-of-two-arrays
0350-intersection-of-two-arrays-ii
0908-middle-of-the-linked-list
1894-merge-strings-alternately
2216-delete-the-middle-node-of-a-linked-list

String

0017-letter-combinations-of-a-phone-number
0020-valid-parentheses
0028-find-the-index-of-the-first-occurrence-in-a-string
0043-multiply-strings
0049-group-anagrams
0067-add-binary
0151-reverse-words-in-a-string
0214-shortest-palindrome
0257-binary-tree-paths
0451-sort-characters-by-frequency
0782-jewels-and-stones
0812-rotate-string
1160-letter-tile-possibilities
1205-defanging-an-ip-address
1250-longest-common-subsequence
1524-string-matching-in-an-array
1894-merge-strings-alternately
2021-remove-all-occurrences-of-a-substring
2137-final-value-of-variable-after-performing-operations
3379-score-of-a-string

Math

0007-reverse-integer
0009-palindrome-number
0043-multiply-strings
0062-unique-paths
0067-add-binary
0069-sqrtx
0189-rotate-array
0204-count-primes
0231-power-of-two
0268-missing-number
0279-perfect-squares
0292-nim-game
0367-valid-perfect-square
0507-perfect-number
1086-divisor-game
1635-number-of-good-pairs
2383-add-two-integers
2491-smallest-even-multiple
2556-convert-the-temperature
2812-find-the-maximum-achievable-number
3172-divisible-and-non-divisible-sums-difference
3476-find-minimum-operations-to-make-all-elements-divisible-by-three

Simulation

0043-multiply-strings
0067-add-binary
2021-remove-all-occurrences-of-a-substring
2048-build-array-from-permutation
2058-concatenation-of-array
2137-final-value-of-variable-after-performing-operations

Binary Search

0004-median-of-two-sorted-arrays
0033-search-in-rotated-sorted-array
0069-sqrtx
0167-two-sum-ii-input-array-is-sorted
0222-count-complete-tree-nodes
0268-missing-number
0300-longest-increasing-subsequence
0349-intersection-of-two-arrays
0350-intersection-of-two-arrays-ii
0367-valid-perfect-square

Enumeration

0204-count-primes

Number Theory

0204-count-primes
2491-smallest-even-multiple

Hash Table

0017-letter-combinations-of-a-phone-number
0049-group-anagrams
0268-missing-number
0349-intersection-of-two-arrays
0350-intersection-of-two-arrays-ii
0451-sort-characters-by-frequency
0782-jewels-and-stones
1160-letter-tile-possibilities
1635-number-of-good-pairs
2766-find-the-prefix-common-array-of-two-arrays
3428-find-the-xor-of-numbers-which-appear-twice

Counting

0451-sort-characters-by-frequency
1160-letter-tile-possibilities
1635-number-of-good-pairs

Bit Manipulation

0067-add-binary
0136-single-number
0222-count-complete-tree-nodes
0231-power-of-two
0268-missing-number
2533-bitwise-xor-of-all-pairings
2766-find-the-prefix-common-array-of-two-arrays
2792-neighboring-bitwise-xor
3428-find-the-xor-of-numbers-which-appear-twice

Brainteaser

0292-nim-game
1086-divisor-game
2533-bitwise-xor-of-all-pairings

Recursion

0021-merge-two-sorted-lists
0206-reverse-linked-list
0231-power-of-two
0234-palindrome-linked-list

Breadth-First Search

0100-same-tree
0112-path-sum
0226-invert-binary-tree
0279-perfect-squares
0404-sum-of-left-leaves
0407-trapping-rain-water-ii
0695-max-area-of-island
0744-network-delay-time
1485-minimum-cost-to-make-at-least-one-valid-path-in-a-grid

Graph

0744-network-delay-time
1485-minimum-cost-to-make-at-least-one-valid-path-in-a-grid

Heap (Priority Queue)

0407-trapping-rain-water-ii
0451-sort-characters-by-frequency
0744-network-delay-time
1485-minimum-cost-to-make-at-least-one-valid-path-in-a-grid

Matrix

0407-trapping-rain-water-ii
0695-max-area-of-island
1485-minimum-cost-to-make-at-least-one-valid-path-in-a-grid

Shortest Path

0744-network-delay-time
1485-minimum-cost-to-make-at-least-one-valid-path-in-a-grid

Dynamic Programming

0053-maximum-subarray
0062-unique-paths
0121-best-time-to-buy-and-sell-stock
0198-house-robber
0213-house-robber-ii
0279-perfect-squares
0300-longest-increasing-subsequence
1086-divisor-game
1250-longest-common-subsequence

Linked List

0021-merge-two-sorted-lists
0206-reverse-linked-list
0234-palindrome-linked-list
0328-odd-even-linked-list
0908-middle-of-the-linked-list
2216-delete-the-middle-node-of-a-linked-list

Stack

0020-valid-parentheses
0094-binary-tree-inorder-traversal
0144-binary-tree-preorder-traversal
0173-binary-search-tree-iterator
0225-implement-stack-using-queues
0234-palindrome-linked-list
1305-number-of-visible-people-in-a-queue
2021-remove-all-occurrences-of-a-substring

Game Theory

0292-nim-game
1086-divisor-game

Sorting

0049-group-anagrams
0088-merge-sorted-array
0268-missing-number
0349-intersection-of-two-arrays
0350-intersection-of-two-arrays-ii
0414-third-maximum-number
0451-sort-characters-by-frequency
1584-average-salary-excluding-the-minimum-and-maximum-salary
2283-sort-even-and-odd-indices-independently

Design

0173-binary-search-tree-iterator
0225-implement-stack-using-queues

Queue

0225-implement-stack-using-queues

String Matching

0028-find-the-index-of-the-first-occurrence-in-a-string
0214-shortest-palindrome
0812-rotate-string
1524-string-matching-in-an-array

Tree

0094-binary-tree-inorder-traversal
0100-same-tree
0112-path-sum
0144-binary-tree-preorder-traversal
0173-binary-search-tree-iterator
0222-count-complete-tree-nodes
0226-invert-binary-tree
0257-binary-tree-paths
0404-sum-of-left-leaves

Depth-First Search

0094-binary-tree-inorder-traversal
0100-same-tree
0112-path-sum
0144-binary-tree-preorder-traversal
0226-invert-binary-tree
0257-binary-tree-paths
0404-sum-of-left-leaves
0695-max-area-of-island
0744-network-delay-time

Binary Tree

0094-binary-tree-inorder-traversal
0100-same-tree
0112-path-sum
0144-binary-tree-preorder-traversal
0173-binary-search-tree-iterator
0222-count-complete-tree-nodes
0226-invert-binary-tree
0257-binary-tree-paths
0404-sum-of-left-leaves

Backtracking

0017-letter-combinations-of-a-phone-number
0039-combination-sum
0257-binary-tree-paths
1160-letter-tile-possibilities
1819-construct-the-lexicographically-largest-valid-sequence

Divide and Conquer

0004-median-of-two-sorted-arrays
0053-maximum-subarray

Binary Search Tree

0173-binary-search-tree-iterator

Iterator

0173-binary-search-tree-iterator

Union Find

0695-max-area-of-island

Bucket Sort

0451-sort-characters-by-frequency

Monotonic Stack

1305-number-of-visible-people-in-a-queue

Rolling Hash

0214-shortest-palindrome

Hash Function

0214-shortest-palindrome

Combinatorics

0062-unique-paths

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published