Skip to content

pavis12/leetcode_solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leetcode_solutions

Two Pointers

0018-4sum
0019-remove-nth-node-from-end-of-list
0026-remove-duplicates-from-sorted-array
0061-rotate-list
0075-sort-colors
0141-linked-list-cycle
0142-linked-list-cycle-ii
0160-intersection-of-two-linked-lists
0344-reverse-string
2572-append-characters-to-string-to-make-subsequence

String

0003-longest-substring-without-repeating-characters
0008-string-to-integer-atoi
0014-longest-common-prefix
0131-palindrome-partitioning
0344-reverse-string
0409-longest-palindrome
0686-repeated-string-match
1044-find-common-characters
2572-append-characters-to-string-to-make-subsequence

Array

0001-two-sum
0018-4sum
0026-remove-duplicates-from-sorted-array
0039-combination-sum
0040-combination-sum-ii
0074-search-a-2d-matrix
0075-sort-colors
0078-subsets
0090-subsets-ii
0120-triangle
0128-longest-consecutive-sequence
0169-majority-element
0229-majority-element-ii
0485-max-consecutive-ones
0493-reverse-pairs
0560-subarray-sum-equals-k
0954-maximum-sum-circular-subarray
0982-minimum-increment-to-make-array-unique
1016-subarray-sums-divisible-by-k
1044-find-common-characters
1137-height-checker
1217-relative-sort-array

Binary Search

0074-search-a-2d-matrix
0493-reverse-pairs

Matrix

0074-search-a-2d-matrix

Math

0002-add-two-numbers
0050-powx-n
0060-permutation-sequence

Recursion

0002-add-two-numbers
0021-merge-two-sorted-lists
0025-reverse-nodes-in-k-group
0050-powx-n
0060-permutation-sequence

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0128-longest-consecutive-sequence
0141-linked-list-cycle
0142-linked-list-cycle-ii
0160-intersection-of-two-linked-lists
0169-majority-element
0229-majority-element-ii
0409-longest-palindrome
0560-subarray-sum-equals-k
1016-subarray-sums-divisible-by-k
1044-find-common-characters
1217-relative-sort-array

Divide and Conquer

0169-majority-element
0493-reverse-pairs
0954-maximum-sum-circular-subarray

Sorting

0018-4sum
0075-sort-colors
0169-majority-element
0229-majority-element-ii
0982-minimum-increment-to-make-array-unique
1137-height-checker
1217-relative-sort-array

Counting

0169-majority-element
0229-majority-element-ii

Binary Indexed Tree

0493-reverse-pairs

Segment Tree

0493-reverse-pairs

Merge Sort

0493-reverse-pairs

Ordered Set

0493-reverse-pairs

Union Find

0128-longest-consecutive-sequence

Greedy

0409-longest-palindrome
0982-minimum-increment-to-make-array-unique
2572-append-characters-to-string-to-make-subsequence

Prefix Sum

0560-subarray-sum-equals-k
1016-subarray-sums-divisible-by-k

Sliding Window

0003-longest-substring-without-repeating-characters

Linked List

0002-add-two-numbers
0019-remove-nth-node-from-end-of-list
0021-merge-two-sorted-lists
0025-reverse-nodes-in-k-group
0061-rotate-list
0141-linked-list-cycle
0142-linked-list-cycle-ii
0160-intersection-of-two-linked-lists
0237-delete-node-in-a-linked-list

Database

0197-rising-temperature
0570-managers-with-at-least-5-direct-reports
0577-employee-bonus
0584-find-customer-referee
0595-big-countries
0596-classes-more-than-5-students
0619-biggest-single-number
0620-not-boring-movies
1135-customers-who-bought-all-products
1153-product-sales-analysis-i
1155-product-sales-analysis-iii
1161-project-employees-i
1182-game-play-analysis-iv
1245-user-activity-for-the-past-30-days-i
1258-article-views-i
1292-immediate-food-delivery-ii
1317-monthly-transactions-i
1338-queries-quality-and-percentage
1390-average-selling-price
1415-students-and-examinations
1509-replace-employee-id-with-the-unique-identifier
1724-customer-who-visited-but-did-not-make-any-transactions
1773-percentage-of-users-attended-a-contest
1801-average-time-of-process-per-machine
1827-invalid-tweets
1877-find-followers-count
1908-recyclable-and-low-fat-products
2087-confirmation-rate
2495-number-of-unique-subjects-taught-by-each-teacher

Backtracking

0039-combination-sum
0040-combination-sum-ii
0078-subsets
0090-subsets-ii
0131-palindrome-partitioning

Bit Manipulation

0078-subsets
0090-subsets-ii

Dynamic Programming

0120-triangle
0131-palindrome-partitioning
0954-maximum-sum-circular-subarray

Queue

0954-maximum-sum-circular-subarray

Monotonic Queue

0954-maximum-sum-circular-subarray

Counting Sort

0982-minimum-increment-to-make-array-unique
1137-height-checker
1217-relative-sort-array

Trie

0014-longest-common-prefix

String Matching

0686-repeated-string-match

Tree

1114-binary-search-tree-to-greater-sum-tree

Depth-First Search

1114-binary-search-tree-to-greater-sum-tree

Binary Search Tree

1114-binary-search-tree-to-greater-sum-tree

Binary Tree

1114-binary-search-tree-to-greater-sum-tree

Graph

1916-find-center-of-star-graph

LeetCode Topics

Array

0001-two-sum
0015-3sum
0018-4sum
0026-remove-duplicates-from-sorted-array
0031-next-permutation
0048-rotate-image
0053-maximum-subarray
0054-spiral-matrix
0056-merge-intervals
0073-set-matrix-zeroes
0075-sort-colors
0088-merge-sorted-array
0121-best-time-to-buy-and-sell-stock
0136-single-number
0152-maximum-product-subarray
0169-majority-element
0189-rotate-array
0209-minimum-size-subarray-sum
0268-missing-number
0283-move-zeroes
0350-intersection-of-two-arrays-ii
0485-max-consecutive-ones
0496-next-greater-element-i
0560-subarray-sum-equals-k
0624-maximum-distance-in-arrays
0890-lemonade-change
1325-path-with-maximum-probability
1679-shortest-subarray-to-be-removed-to-make-array-sorted
1720-crawler-log-folder
1803-average-waiting-time
1878-check-if-array-is-sorted-and-rotated
1951-find-the-winner-of-the-circular-game
2503-longest-subarray-with-maximum-bitwise-and
2794-maximum-number-of-moves-in-a-grid
3329-find-the-length-of-the-longest-common-prefix
3522-find-the-power-of-k-size-subarrays-i

Hash Table

0001-two-sum
0073-set-matrix-zeroes
0141-linked-list-cycle
0142-linked-list-cycle-ii
0160-intersection-of-two-linked-lists
0169-majority-element
0242-valid-anagram
0268-missing-number
0350-intersection-of-two-arrays-ii
0496-next-greater-element-i
0560-subarray-sum-equals-k
0920-uncommon-words-from-two-sentences
3329-find-the-length-of-the-longest-common-prefix

Two Pointers

0015-3sum
0018-4sum
0019-remove-nth-node-from-end-of-list
0026-remove-duplicates-from-sorted-array
0031-next-permutation
0075-sort-colors
0088-merge-sorted-array
0141-linked-list-cycle
0142-linked-list-cycle-ii
0148-sort-list
0160-intersection-of-two-linked-lists
0189-rotate-array
0234-palindrome-linked-list
0283-move-zeroes
0350-intersection-of-two-arrays-ii
0908-middle-of-the-linked-list
1679-shortest-subarray-to-be-removed-to-make-array-sorted
2216-delete-the-middle-node-of-a-linked-list

Binary Search

0209-minimum-size-subarray-sum
0268-missing-number
0350-intersection-of-two-arrays-ii
1679-shortest-subarray-to-be-removed-to-make-array-sorted

Sorting

0015-3sum
0018-4sum
0056-merge-intervals
0075-sort-colors
0088-merge-sorted-array
0148-sort-list
0169-majority-element
0242-valid-anagram
0268-missing-number
0350-intersection-of-two-arrays-ii

Linked List

0002-add-two-numbers
0019-remove-nth-node-from-end-of-list
0025-reverse-nodes-in-k-group
0141-linked-list-cycle
0142-linked-list-cycle-ii
0148-sort-list
0160-intersection-of-two-linked-lists
0206-reverse-linked-list
0234-palindrome-linked-list
0237-delete-node-in-a-linked-list
0328-odd-even-linked-list
0908-middle-of-the-linked-list
2216-delete-the-middle-node-of-a-linked-list
2299-merge-nodes-in-between-zeros

Simulation

0054-spiral-matrix
1803-average-waiting-time
1951-find-the-winner-of-the-circular-game
2299-merge-nodes-in-between-zeros

Math

0002-add-two-numbers
0048-rotate-image
0189-rotate-array
0268-missing-number
1951-find-the-winner-of-the-circular-game

Recursion

0002-add-two-numbers
0025-reverse-nodes-in-k-group
0206-reverse-linked-list
0234-palindrome-linked-list
1951-find-the-winner-of-the-circular-game

Queue

1951-find-the-winner-of-the-circular-game

Stack

0234-palindrome-linked-list
0496-next-greater-element-i
1679-shortest-subarray-to-be-removed-to-make-array-sorted
1720-crawler-log-folder

Monotonic Stack

0496-next-greater-element-i
1679-shortest-subarray-to-be-removed-to-make-array-sorted

String

0038-count-and-say
0242-valid-anagram
0920-uncommon-words-from-two-sentences
1720-crawler-log-folder
3329-find-the-length-of-the-longest-common-prefix

Greedy

0624-maximum-distance-in-arrays
0890-lemonade-change

Graph

1325-path-with-maximum-probability

Heap (Priority Queue)

1325-path-with-maximum-probability

Shortest Path

1325-path-with-maximum-probability

Bit Manipulation

0136-single-number
0268-missing-number
2503-longest-subarray-with-maximum-bitwise-and

Brainteaser

2503-longest-subarray-with-maximum-bitwise-and

Counting

0169-majority-element
0920-uncommon-words-from-two-sentences

Trie

3329-find-the-length-of-the-longest-common-prefix

Dynamic Programming

0053-maximum-subarray
0121-best-time-to-buy-and-sell-stock
0152-maximum-product-subarray
2794-maximum-number-of-moves-in-a-grid

Matrix

0048-rotate-image
0054-spiral-matrix
0073-set-matrix-zeroes
2794-maximum-number-of-moves-in-a-grid

Divide and Conquer

0053-maximum-subarray
0148-sort-list
0169-majority-element

Prefix Sum

0209-minimum-size-subarray-sum
0560-subarray-sum-equals-k

Merge Sort

0148-sort-list

Sliding Window

0209-minimum-size-subarray-sum
3522-find-the-power-of-k-size-subarrays-i

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published