Skip to content

technicalpriyanka/Leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leetcode

Daily code data syncing with problem statements and solutions from LeetCode.

LeetCode Topics

Array

0001-two-sum
0026-remove-duplicates-from-sorted-array
0027-remove-element
0035-search-insert-position
0073-set-matrix-zeroes
0075-sort-colors
0088-merge-sorted-array
0108-convert-sorted-array-to-binary-search-tree
0118-pascals-triangle
0119-pascals-triangle-ii
0121-best-time-to-buy-and-sell-stock
0136-single-number
0905-length-of-longest-fibonacci-subsequence
0934-bitwise-ors-of-subarrays
0945-snakes-and-ladders
1049-minimum-domino-rotations-for-equal-row
1227-number-of-equivalent-domino-pairs
1293-three-consecutive-odds
1424-maximum-candies-you-can-get-from-boxes
1813-maximum-erasure-value
1849-maximum-absolute-sum-of-any-subarray
2048-build-array-from-permutation
2144-maximum-difference-between-increasing-elements
2180-maximum-number-of-tasks-you-can-assign
2215-finding-3-digit-even-numbers
2220-find-all-possible-recipes-from-given-supplies
2237-longest-palindrome-by-concatenating-two-letter-words
2265-partition-array-according-to-given-pivot
2387-partition-array-such-that-maximum-difference-is-k
2503-longest-subarray-with-maximum-bitwise-and
2551-apply-operations-to-an-array
2588-maximum-number-of-points-from-grid-queries
2614-maximum-count-of-positive-integer-and-negative-integer
2665-minimum-time-to-repair-cars
2689-rearranging-fruits
2690-house-robber-iv
2707-merge-two-2d-arrays-by-summing-values
2888-minimum-index-of-a-valid-split
3142-longest-unequal-adjacent-groups-subsequence-ii
3143-longest-unequal-adjacent-groups-subsequence-i
3171-minimum-equal-sum-of-two-arrays-after-replacing-zeros
3194-find-words-containing-character
3227-find-missing-and-repeated-values
3241-divide-array-into-arrays-with-max-difference
3307-find-the-maximum-sum-of-node-values
3321-type-of-triangle
3348-minimum-cost-walk-in-weighted-graph
3430-count-days-without-meetings
3483-alternating-groups-ii
3627-find-minimum-time-to-reach-last-room-i
3628-find-minimum-time-to-reach-last-room-ii
3639-zero-array-transformation-i
3643-zero-array-transformation-ii
3647-zero-array-transformation-iii
3656-minimum-number-of-operations-to-make-elements-in-array-distinct

Hash Table

0001-two-sum
0073-set-matrix-zeroes
0905-length-of-longest-fibonacci-subsequence
1227-number-of-equivalent-domino-pairs
1460-number-of-substrings-containing-all-three-characters
1813-maximum-erasure-value
1986-largest-color-value-in-a-directed-graph
2215-finding-3-digit-even-numbers
2220-find-all-possible-recipes-from-given-supplies
2237-longest-palindrome-by-concatenating-two-letter-words
2520-using-a-robot-to-print-the-lexicographically-smallest-string
2689-rearranging-fruits
2707-merge-two-2d-arrays-by-summing-values
2888-minimum-index-of-a-valid-split
3227-find-missing-and-repeated-values
3360-minimum-deletions-to-make-string-k-special
3445-lexicographically-minimum-string-after-removing-stars
3569-count-of-substrings-containing-every-vowel-and-k-consonants-ii
3629-total-characters-in-string-after-transformations-i
3630-total-characters-in-string-after-transformations-ii
3656-minimum-number-of-operations-to-make-elements-in-array-distinct
3753-maximum-difference-between-even-and-odd-frequency-i
3754-maximum-manhattan-distance-after-k-changes

Dynamic Programming

0118-pascals-triangle
0119-pascals-triangle-ii
0121-best-time-to-buy-and-sell-stock
0806-domino-and-tromino-tiling
0868-push-dominoes
0905-length-of-longest-fibonacci-subsequence
0934-bitwise-ors-of-subarrays
1170-shortest-common-supersequence
1849-maximum-absolute-sum-of-any-subarray
1986-largest-color-value-in-a-directed-graph
2061-painting-a-grid-with-three-different-colors
3142-longest-unequal-adjacent-groups-subsequence-ii
3143-longest-unequal-adjacent-groups-subsequence-i
3243-count-the-number-of-powerful-integers
3307-find-the-maximum-sum-of-node-values
3629-total-characters-in-string-after-transformations-i
3630-total-characters-in-string-after-transformations-ii
3637-count-number-of-balanced-permutations

String

0868-push-dominoes
1170-shortest-common-supersequence
1460-number-of-substrings-containing-all-three-characters
1818-maximum-score-from-removing-substrings
2220-find-all-possible-recipes-from-given-supplies
2237-longest-palindrome-by-concatenating-two-letter-words
2260-divide-a-string-into-groups-of-size-k
2463-minimum-recolors-to-get-k-consecutive-black-blocks
2520-using-a-robot-to-print-the-lexicographically-smallest-string
3142-longest-unequal-adjacent-groups-subsequence-ii
3143-longest-unequal-adjacent-groups-subsequence-i
3194-find-words-containing-character
3243-count-the-number-of-powerful-integers
3360-minimum-deletions-to-make-string-k-special
3445-lexicographically-minimum-string-after-removing-stars
3569-count-of-substrings-containing-every-vowel-and-k-consonants-ii
3629-total-characters-in-string-after-transformations-i
3630-total-characters-in-string-after-transformations-ii
3637-count-number-of-balanced-permutations
3753-maximum-difference-between-even-and-odd-frequency-i
3754-maximum-manhattan-distance-after-k-changes
3761-maximum-difference-between-even-and-odd-frequency-ii

Two Pointers

0026-remove-duplicates-from-sorted-array
0027-remove-element
0075-sort-colors
0088-merge-sorted-array
0868-push-dominoes
2265-partition-array-according-to-given-pivot
2551-apply-operations-to-an-array
2588-maximum-number-of-points-from-grid-queries
2707-merge-two-2d-arrays-by-summing-values

Simulation

2048-build-array-from-permutation
2260-divide-a-string-into-groups-of-size-k
2265-partition-array-according-to-given-pivot
2551-apply-operations-to-an-array

Math

0009-palindrome-number
1889-check-if-number-is-a-sum-of-powers-of-three
2610-closest-prime-numbers-in-range
2649-count-total-number-of-colored-cells
2704-maximum-difference-by-remapping-a-digit
3172-divisible-and-non-divisible-sums-difference
3227-find-missing-and-repeated-values
3243-count-the-number-of-powerful-integers
3321-type-of-triangle
3629-total-characters-in-string-after-transformations-i
3630-total-characters-in-string-after-transformations-ii
3637-count-number-of-balanced-permutations
3682-count-the-number-of-arrays-with-k-matching-adjacent-elements
3754-maximum-manhattan-distance-after-k-changes

Matrix

0073-set-matrix-zeroes
0945-snakes-and-ladders
2588-maximum-number-of-points-from-grid-queries
3227-find-missing-and-repeated-values
3627-find-minimum-time-to-reach-last-room-i
3628-find-minimum-time-to-reach-last-room-ii

Number Theory

2610-closest-prime-numbers-in-range

Sliding Window

1460-number-of-substrings-containing-all-three-characters
1813-maximum-erasure-value
2463-minimum-recolors-to-get-k-consecutive-black-blocks
3483-alternating-groups-ii
3569-count-of-substrings-containing-every-vowel-and-k-consonants-ii
3761-maximum-difference-between-even-and-odd-frequency-ii

Binary Search

0035-search-insert-position
2180-maximum-number-of-tasks-you-can-assign
2614-maximum-count-of-positive-integer-and-negative-integer
2665-minimum-time-to-repair-cars
2690-house-robber-iv
3643-zero-array-transformation-ii

Counting

1227-number-of-equivalent-domino-pairs
1986-largest-color-value-in-a-directed-graph
2237-longest-palindrome-by-concatenating-two-letter-words
2614-maximum-count-of-positive-integer-and-negative-integer
3360-minimum-deletions-to-make-string-k-special
3629-total-characters-in-string-after-transformations-i
3630-total-characters-in-string-after-transformations-ii
3753-maximum-difference-between-even-and-odd-frequency-i
3754-maximum-manhattan-distance-after-k-changes

Prefix Sum

3639-zero-array-transformation-i
3643-zero-array-transformation-ii
3647-zero-array-transformation-iii
3761-maximum-difference-between-even-and-odd-frequency-ii

Bit Manipulation

0136-single-number
0934-bitwise-ors-of-subarrays
2503-longest-subarray-with-maximum-bitwise-and
3307-find-the-maximum-sum-of-node-values
3348-minimum-cost-walk-in-weighted-graph

Union Find

2588-maximum-number-of-points-from-grid-queries
3348-minimum-cost-walk-in-weighted-graph

Graph

1424-maximum-candies-you-can-get-from-boxes
1986-largest-color-value-in-a-directed-graph
2220-find-all-possible-recipes-from-given-supplies
2438-find-closest-node-to-given-two-nodes
3348-minimum-cost-walk-in-weighted-graph
3627-find-minimum-time-to-reach-last-room-i
3628-find-minimum-time-to-reach-last-room-ii

Topological Sort

1986-largest-color-value-in-a-directed-graph
2220-find-all-possible-recipes-from-given-supplies

Sorting

0075-sort-colors
0088-merge-sorted-array
2180-maximum-number-of-tasks-you-can-assign
2215-finding-3-digit-even-numbers
2387-partition-array-such-that-maximum-difference-is-k
2588-maximum-number-of-points-from-grid-queries
2689-rearranging-fruits
2888-minimum-index-of-a-valid-split
3241-divide-array-into-arrays-with-max-difference
3307-find-the-maximum-sum-of-node-values
3321-type-of-triangle
3360-minimum-deletions-to-make-string-k-special
3430-count-days-without-meetings
3647-zero-array-transformation-iii

Breadth-First Search

0945-snakes-and-ladders
1424-maximum-candies-you-can-get-from-boxes
2588-maximum-number-of-points-from-grid-queries
3633-maximize-the-number-of-target-nodes-after-connecting-trees-i
3645-maximize-the-number-of-target-nodes-after-connecting-trees-ii

Heap (Priority Queue)

2588-maximum-number-of-points-from-grid-queries
3445-lexicographically-minimum-string-after-removing-stars
3627-find-minimum-time-to-reach-last-room-i
3628-find-minimum-time-to-reach-last-room-ii
3647-zero-array-transformation-iii

Database

0175-combine-two-tables
0176-second-highest-salary
0180-consecutive-numbers
0181-employees-earning-more-than-their-managers
0182-duplicate-emails
0183-customers-who-never-order
0185-department-top-three-salaries
0196-delete-duplicate-emails
0197-rising-temperature
0570-managers-with-at-least-5-direct-reports
0577-employee-bonus
0584-find-customer-referee
0585-investments-in-2016
0586-customer-placing-the-largest-number-of-orders
0595-big-countries
0596-classes-more-than-5-students
0602-friend-requests-ii-who-has-the-most-friends
0607-sales-person
0610-triangle-judgement
0619-biggest-single-number
0620-not-boring-movies
0626-exchange-seats
0627-swap-salary
1135-customers-who-bought-all-products
1153-product-sales-analysis-i
1155-product-sales-analysis-iii
1161-project-employees-i
1174-sales-analysis-iii
1179-game-play-analysis-i
1182-game-play-analysis-iv
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
1301-reformat-department-table
1317-monthly-transactions-i
1327-last-person-to-fit-in-the-bus
1338-queries-quality-and-percentage
1390-average-selling-price
1415-students-and-examinations
1452-restaurant-growth
1462-list-the-products-ordered-in-a-period
1480-movie-rating
1509-replace-employee-id-with-the-unique-identifier
1541-top-travellers
1625-group-sold-products-by-the-date
1664-find-users-with-valid-e-mails
1670-patients-with-a-condition
1724-customer-who-visited-but-did-not-make-any-transactions
1734-bank-account-summary-ii
1773-percentage-of-users-attended-a-contest
1801-average-time-of-process-per-machine
1811-fix-names-in-a-table
1827-invalid-tweets
1837-daily-leads-and-partners
1877-find-followers-count
1882-the-number-of-employees-which-report-to-each-employee
1908-recyclable-and-low-fat-products
1942-primary-department-for-each-employee
1948-rearrange-products-table
2024-calculate-special-bonus
2041-the-latest-login-in-2020
2057-count-salary-categories
2087-confirmation-rate
2110-employees-with-missing-information
2127-employees-whose-manager-left-the-company
2495-number-of-unique-subjects-taught-by-each-teacher
3782-find-valid-emails
3803-find-products-with-valid-serial-numbers

Greedy

1049-minimum-domino-rotations-for-equal-row
1818-maximum-score-from-removing-substrings
2180-maximum-number-of-tasks-you-can-assign
2237-longest-palindrome-by-concatenating-two-letter-words
2387-partition-array-such-that-maximum-difference-is-k
2520-using-a-robot-to-print-the-lexicographically-smallest-string
2689-rearranging-fruits
2704-maximum-difference-by-remapping-a-digit
3143-longest-unequal-adjacent-groups-subsequence-i
3171-minimum-equal-sum-of-two-arrays-after-replacing-zeros
3241-divide-array-into-arrays-with-max-difference
3307-find-the-maximum-sum-of-node-values
3360-minimum-deletions-to-make-string-k-special
3445-lexicographically-minimum-string-after-removing-stars
3647-zero-array-transformation-iii

Queue

2180-maximum-number-of-tasks-you-can-assign

Monotonic Queue

2180-maximum-number-of-tasks-you-can-assign

Shortest Path

3627-find-minimum-time-to-reach-last-room-i
3628-find-minimum-time-to-reach-last-room-ii

Combinatorics

3637-count-number-of-balanced-permutations
3682-count-the-number-of-arrays-with-k-matching-adjacent-elements

Divide and Conquer

0108-convert-sorted-array-to-binary-search-tree

Tree

0108-convert-sorted-array-to-binary-search-tree
3307-find-the-maximum-sum-of-node-values
3633-maximize-the-number-of-target-nodes-after-connecting-trees-i
3645-maximize-the-number-of-target-nodes-after-connecting-trees-ii

Binary Search Tree

0108-convert-sorted-array-to-binary-search-tree

Binary Tree

0108-convert-sorted-array-to-binary-search-tree

Enumeration

2215-finding-3-digit-even-numbers
3761-maximum-difference-between-even-and-odd-frequency-ii

Memoization

1986-largest-color-value-in-a-directed-graph

Depth-First Search

0386-lexicographical-numbers
2438-find-closest-node-to-given-two-nodes
3633-maximize-the-number-of-target-nodes-after-connecting-trees-i
3645-maximize-the-number-of-target-nodes-after-connecting-trees-ii

Stack

1818-maximum-score-from-removing-substrings
2520-using-a-robot-to-print-the-lexicographically-smallest-string
3445-lexicographically-minimum-string-after-removing-stars

Trie

0386-lexicographical-numbers

Brainteaser

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

About

Daily data sync

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published