Skip to content

NafihMT/LeetCode-Repo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

582 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode-Repo

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
0026-remove-duplicates-from-sorted-array
0027-remove-element
0034-find-first-and-last-position-of-element-in-sorted-array
0035-search-insert-position
0066-plus-one
0075-sort-colors
0121-best-time-to-buy-and-sell-stock
0153-find-minimum-in-rotated-sorted-array
0154-find-minimum-in-rotated-sorted-array-ii
0167-two-sum-ii-input-array-is-sorted
0169-majority-element
0209-minimum-size-subarray-sum
0219-contains-duplicate-ii
0283-move-zeroes
0442-find-all-duplicates-in-an-array
0448-find-all-numbers-disappeared-in-an-array
0485-max-consecutive-ones
0594-longest-harmonious-subsequence
0643-maximum-average-subarray-i
0645-set-mismatch
0912-sort-an-array
0961-n-repeated-element-in-size-2n-array
1018-binary-prefix-divisible-by-5
1365-how-many-numbers-are-smaller-than-the-current-number
1482-how-many-numbers-are-smaller-than-the-current-number
1580-shuffle-the-array
1603-running-sum-of-1d-array
1635-number-of-good-pairs
2048-build-array-from-permutation
2058-concatenation-of-array
2112-minimum-difference-between-highest-and-lowest-of-k-scores
2114-maximum-number-of-words-found-in-sentences
2137-final-value-of-variable-after-performing-operations
2231-find-first-palindromic-string-in-the-array
2265-partition-array-according-to-given-pivot
2350-find-closest-number-to-zero
2502-sort-the-people
2866-longest-even-odd-subarray-with-threshold
2917-count-pairs-whose-sum-is-less-than-target
3074-apple-redistribution-into-boxes
3190-find-minimum-operations-to-make-all-elements-divisible-by-three
3194-find-words-containing-character
3242-count-elements-with-maximum-frequency
3432-count-partitions-with-even-sum-difference
3467-transform-array-by-parity
3512-minimum-operations-to-make-array-sum-divisible-by-k
3581-the-two-sneaky-numbers-of-digitville
3778-transform-array-by-parity
4008-restore-finishing-order

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0013-roman-to-integer
0169-majority-element
0219-contains-duplicate-ii
0242-valid-anagram
0442-find-all-duplicates-in-an-array
0448-find-all-numbers-disappeared-in-an-array
0594-longest-harmonious-subsequence
0645-set-mismatch
0771-jewels-and-stones
0961-n-repeated-element-in-size-2n-array
1365-how-many-numbers-are-smaller-than-the-current-number
1482-how-many-numbers-are-smaller-than-the-current-number
1635-number-of-good-pairs
1832-check-if-the-sentence-is-pangram
1873-longest-nice-substring
1987-substrings-of-size-three-with-distinct-characters
2502-sort-the-people
3242-count-elements-with-maximum-frequency
3581-the-two-sneaky-numbers-of-digitville
3760-maximum-substrings-with-distinct-start
3872-find-most-frequent-vowel-and-consonant
4008-restore-finishing-order

String

0003-longest-substring-without-repeating-characters
0013-roman-to-integer
0020-valid-parentheses
0043-multiply-strings
0058-length-of-last-word
0125-valid-palindrome
0242-valid-anagram
0344-reverse-string
0345-reverse-vowels-of-a-string
0557-reverse-words-in-a-string-iii
0742-to-lower-case
0771-jewels-and-stones
1071-greatest-common-divisor-of-strings
1221-split-a-string-in-balanced-strings
1784-check-if-binary-string-has-at-most-one-segment-of-ones
1832-check-if-the-sentence-is-pangram
1873-longest-nice-substring
1894-merge-strings-alternately
1987-substrings-of-size-three-with-distinct-characters
2114-maximum-number-of-words-found-in-sentences
2128-reverse-prefix-of-word
2137-final-value-of-variable-after-performing-operations
2231-find-first-palindromic-string-in-the-array
2278-percentage-of-letter-in-string
2346-largest-3-same-digit-number-in-string
2502-sort-the-people
3194-find-words-containing-character
3567-convert-date-to-binary
3760-maximum-substrings-with-distinct-start
3768-check-if-digits-are-equal-in-string-after-operations-i
3794-reverse-string-prefix
3872-find-most-frequent-vowel-and-consonant

Two Pointers

0026-remove-duplicates-from-sorted-array
0027-remove-element
0075-sort-colors
0125-valid-palindrome
0167-two-sum-ii-input-array-is-sorted
0283-move-zeroes
0344-reverse-string
0345-reverse-vowels-of-a-string
0557-reverse-words-in-a-string-iii
1894-merge-strings-alternately
2128-reverse-prefix-of-word
2231-find-first-palindromic-string-in-the-array
2265-partition-array-according-to-given-pivot
2481-strictly-palindromic-number
2917-count-pairs-whose-sum-is-less-than-target
3794-reverse-string-prefix

Math

0007-reverse-integer
0009-palindrome-number
0013-roman-to-integer
0043-multiply-strings
0050-powx-n
0066-plus-one
0069-sqrtx
0070-climbing-stairs
0342-power-of-four
0509-fibonacci-number
1071-greatest-common-divisor-of-strings
1414-find-the-minimum-number-of-fibonacci-numbers-whose-sum-is-k
1448-maximum-69-number
1523-count-odd-numbers-in-an-interval-range
1635-number-of-good-pairs
1817-calculate-money-in-leetcode-bank
2383-add-two-integers
2481-strictly-palindromic-number
2491-smallest-even-multiple
2520-count-the-digits-that-divide-a-number
2556-convert-the-temperature
2752-sum-multiples
2812-find-the-maximum-achievable-number
3172-divisible-and-non-divisible-sums-difference
3190-find-minimum-operations-to-make-all-elements-divisible-by-three
3432-count-partitions-with-even-sum-difference
3512-minimum-operations-to-make-array-sum-divisible-by-k
3567-convert-date-to-binary
3581-the-two-sneaky-numbers-of-digitville
3676-smallest-number-with-all-set-bits
3768-check-if-digits-are-equal-in-string-after-operations-i
3830-find-closest-person

Bit Manipulation

0190-reverse-bits
0342-power-of-four
0645-set-mismatch
1018-binary-prefix-divisible-by-5
1873-longest-nice-substring
3676-smallest-number-with-all-set-bits

Recursion

0050-powx-n
0342-power-of-four
0509-fibonacci-number

Greedy

1221-split-a-string-in-balanced-strings
1414-find-the-minimum-number-of-fibonacci-numbers-whose-sum-is-k
1448-maximum-69-number
3074-apple-redistribution-into-boxes

Sliding Window

0003-longest-substring-without-repeating-characters
0209-minimum-size-subarray-sum
0219-contains-duplicate-ii
0594-longest-harmonious-subsequence
0643-maximum-average-subarray-i
1873-longest-nice-substring
1987-substrings-of-size-three-with-distinct-characters
2112-minimum-difference-between-highest-and-lowest-of-k-scores
2866-longest-even-odd-subarray-with-threshold

Sorting

0075-sort-colors
0169-majority-element
0242-valid-anagram
0442-find-all-duplicates-in-an-array
0594-longest-harmonious-subsequence
0645-set-mismatch
0912-sort-an-array
1365-how-many-numbers-are-smaller-than-the-current-number
1482-how-many-numbers-are-smaller-than-the-current-number
2112-minimum-difference-between-highest-and-lowest-of-k-scores
2502-sort-the-people
2917-count-pairs-whose-sum-is-less-than-target
3074-apple-redistribution-into-boxes
3467-transform-array-by-parity
3778-transform-array-by-parity

Counting

0169-majority-element
0594-longest-harmonious-subsequence
1221-split-a-string-in-balanced-strings
1635-number-of-good-pairs
1987-substrings-of-size-three-with-distinct-characters
3242-count-elements-with-maximum-frequency
3467-transform-array-by-parity
3778-transform-array-by-parity
3872-find-most-frequent-vowel-and-consonant

Database

0175-combine-two-tables
0176-second-highest-salary
0181-employees-earning-more-than-their-managers
0182-duplicate-emails
0183-customers-who-never-order
0196-delete-duplicate-emails
0577-employee-bonus
0584-find-customer-referee
0595-big-countries
0607-sales-person
0619-biggest-single-number
1179-game-play-analysis-i
1378-replace-employee-id-with-the-unique-identifier
1757-recyclable-and-low-fat-products
2495-number-of-unique-subjects-taught-by-each-teacher

Binary Search

0004-median-of-two-sorted-arrays
0034-find-first-and-last-position-of-element-in-sorted-array
0035-search-insert-position
0069-sqrtx
0153-find-minimum-in-rotated-sorted-array
0154-find-minimum-in-rotated-sorted-array-ii
0167-two-sum-ii-input-array-is-sorted
0209-minimum-size-subarray-sum
2917-count-pairs-whose-sum-is-less-than-target

Prefix Sum

0209-minimum-size-subarray-sum
1603-running-sum-of-1d-array
3432-count-partitions-with-even-sum-difference

Divide and Conquer

0004-median-of-two-sorted-arrays
0169-majority-element
0190-reverse-bits
0912-sort-an-array
1873-longest-nice-substring

Simulation

0043-multiply-strings
2048-build-array-from-permutation
2058-concatenation-of-array
2137-final-value-of-variable-after-performing-operations
2265-partition-array-according-to-given-pivot
3768-check-if-digits-are-equal-in-string-after-operations-i

Brainteaser

2481-strictly-palindromic-number

Dynamic Programming

0070-climbing-stairs
0121-best-time-to-buy-and-sell-stock
0509-fibonacci-number

Combinatorics

3768-check-if-digits-are-equal-in-string-after-operations-i

Number Theory

2491-smallest-even-multiple
3768-check-if-digits-are-equal-in-string-after-operations-i

Stack

0020-valid-parentheses
2128-reverse-prefix-of-word

Counting Sort

0912-sort-an-array
1365-how-many-numbers-are-smaller-than-the-current-number
1482-how-many-numbers-are-smaller-than-the-current-number

Heap (Priority Queue)

0912-sort-an-array

Merge Sort

0912-sort-an-array

Bucket Sort

0912-sort-an-array

Radix Sort

0912-sort-an-array

Memoization

0070-climbing-stairs
0509-fibonacci-number

About

A collection of LeetCode questions to ace the coding interview! - Created using [LeetHub v2](https://github.com/arunbhardwaj/LeetHub-2.0)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors