Skip to content

A curated set of my LeetCode solutions, organized by difficulty and key algorithmic principles.

Notifications You must be signed in to change notification settings

yusuf-tufan/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
0027-remove-element
0034-find-first-and-last-position-of-element-in-sorted-array
0035-search-insert-position
0066-plus-one
0074-search-a-2d-matrix
0075-sort-colors
0164-maximum-gap
0217-contains-duplicate
0268-missing-number
0287-find-the-duplicate-number
0448-find-all-numbers-disappeared-in-an-array
0792-binary-search
1221-element-appearing-more-than-25-in-sorted-array
1284-four-divisors
1392-find-the-difference-of-two-arrays
1421-find-numbers-with-even-number-of-digits
1468-check-if-n-and-its-double-exist
1476-count-negative-numbers-in-a-sorted-matrix
1584-average-salary-excluding-the-minimum-and-maximum-salary
1944-truncate-sentence
1950-sign-of-the-product-of-an-array
2106-find-greatest-common-divisor-of-array
2137-final-value-of-variable-after-performing-operations
2210-find-target-indices-after-sorting-array
2274-keep-multiplying-found-values-by-two
2350-find-closest-number-to-zero
2502-sort-the-people
2614-maximum-count-of-positive-integer-and-negative-integer

Two Pointers

0027-remove-element
0028-find-the-index-of-the-first-occurrence-in-a-string
0075-sort-colors
0151-reverse-words-in-a-string
0287-find-the-duplicate-number
0557-reverse-words-in-a-string-iii
1468-check-if-n-and-its-double-exist
2128-reverse-prefix-of-word

String

0028-find-the-index-of-the-first-occurrence-in-a-string
0043-multiply-strings
0058-length-of-last-word
0151-reverse-words-in-a-string
0227-basic-calculator-ii
0242-valid-anagram
0520-detect-capital
0557-reverse-words-in-a-string-iii
0782-jewels-and-stones
0812-rotate-string
1260-day-of-the-year
1264-maximum-number-of-words-you-can-type
1283-reformat-date
1904-second-largest-digit-in-a-string
1944-truncate-sentence
1960-check-if-the-sentence-is-pangram
2010-check-if-word-equals-summation-of-two-words
2128-reverse-prefix-of-word
2137-final-value-of-variable-after-performing-operations
2235-capitalize-the-title
2502-sort-the-people
3872-find-most-frequent-vowel-and-consonant

String Matching

0028-find-the-index-of-the-first-occurrence-in-a-string
0812-rotate-string

Math

0007-reverse-integer
0029-divide-two-integers
0043-multiply-strings
0050-powx-n
0066-plus-one
0069-sqrtx
0227-basic-calculator-ii
0231-power-of-two
0268-missing-number
1260-day-of-the-year
1284-four-divisors
1406-subtract-the-product-and-sum-of-digits-of-an-integer
1421-find-numbers-with-even-number-of-digits
1585-the-kth-factor-of-n
1950-sign-of-the-product-of-an-array
2083-three-divisors
2106-find-greatest-common-divisor-of-array
2383-add-two-integers
2608-count-the-digits-that-divide-a-number
2752-sum-multiples
3830-find-closest-person

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
0074-search-a-2d-matrix
0268-missing-number
0287-find-the-duplicate-number
0792-binary-search
1468-check-if-n-and-its-double-exist
1476-count-negative-numbers-in-a-sorted-matrix
2210-find-target-indices-after-sorting-array
2614-maximum-count-of-positive-integer-and-negative-integer

Recursion

0050-powx-n
0231-power-of-two

Bit Manipulation

0029-divide-two-integers
0190-reverse-bits
0231-power-of-two
0268-missing-number
0287-find-the-duplicate-number
0693-binary-number-with-alternating-bits

Matrix

0074-search-a-2d-matrix
1476-count-negative-numbers-in-a-sorted-matrix

Sorting

0075-sort-colors
0164-maximum-gap
0217-contains-duplicate
0242-valid-anagram
0268-missing-number
1468-check-if-n-and-its-double-exist
1584-average-salary-excluding-the-minimum-and-maximum-salary
2210-find-target-indices-after-sorting-array
2274-keep-multiplying-found-values-by-two
2502-sort-the-people

Hash Table

0001-two-sum
0217-contains-duplicate
0242-valid-anagram
0268-missing-number
0448-find-all-numbers-disappeared-in-an-array
0782-jewels-and-stones
1264-maximum-number-of-words-you-can-type
1392-find-the-difference-of-two-arrays
1468-check-if-n-and-its-double-exist
1904-second-largest-digit-in-a-string
1960-check-if-the-sentence-is-pangram
2274-keep-multiplying-found-values-by-two
2502-sort-the-people
3872-find-most-frequent-vowel-and-consonant

Simulation

0043-multiply-strings
2137-final-value-of-variable-after-performing-operations
2274-keep-multiplying-found-values-by-two

Divide and Conquer

0004-median-of-two-sorted-arrays
0190-reverse-bits

Counting

2614-maximum-count-of-positive-integer-and-negative-integer
3872-find-most-frequent-vowel-and-consonant

Number Theory

1585-the-kth-factor-of-n
2083-three-divisors
2106-find-greatest-common-divisor-of-array

Enumeration

2083-three-divisors

Stack

0227-basic-calculator-ii
2128-reverse-prefix-of-word

Bucket Sort

0164-maximum-gap

Radix Sort

0164-maximum-gap

About

A curated set of my LeetCode solutions, organized by difficulty and key algorithmic principles.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages