Skip to content

MonikaSomasundaram/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

0031-next-permutation
0041-first-missing-positive
0048-rotate-image
0049-group-anagrams
0054-spiral-matrix
0056-merge-intervals
0073-set-matrix-zeroes
0074-search-a-2d-matrix
0075-sort-colors
0080-remove-duplicates-from-sorted-array-ii
0128-longest-consecutive-sequence
0136-single-number
0152-maximum-product-subarray
0167-two-sum-ii-input-array-is-sorted
0169-majority-element
0189-rotate-array
0229-majority-element-ii
0268-missing-number
0283-move-zeroes
0349-intersection-of-two-arrays
0455-assign-cookies
0485-max-consecutive-ones
0560-subarray-sum-equals-k
0605-can-place-flowers
0890-lemonade-change
1019-squares-of-a-sorted-array
1496-lucky-numbers-in-a-matrix
1528-kids-with-the-greatest-number-of-candies
1556-make-two-arrays-equal-by-reversing-subarrays
1786-count-the-number-of-consistent-strings
1791-richest-customer-wealth
1878-check-if-array-is-sorted-and-rotated
2132-convert-1d-array-into-2d-array
2163-kth-distinct-string-in-an-array
2271-rearrange-array-elements-by-sign
2502-sort-the-people
2727-number-of-senior-citizens

Two Pointers

0005-longest-palindromic-substring
0031-next-permutation
0075-sort-colors
0080-remove-duplicates-from-sorted-array-ii
0125-valid-palindrome
0151-reverse-words-in-a-string
0167-two-sum-ii-input-array-is-sorted
0189-rotate-array
0283-move-zeroes
0349-intersection-of-two-arrays
0392-is-subsequence
0455-assign-cookies
1019-squares-of-a-sorted-array
1356-minimum-number-of-moves-to-make-palindrome
2271-rearrange-array-elements-by-sign

Math

0012-integer-to-roman
0048-rotate-image
0189-rotate-array
0227-basic-calculator-ii
0268-missing-number
2032-largest-odd-number-in-string

Hash Table

0012-integer-to-roman
0041-first-missing-positive
0049-group-anagrams
0073-set-matrix-zeroes
0128-longest-consecutive-sequence
0169-majority-element
0205-isomorphic-strings
0229-majority-element-ii
0268-missing-number
0349-intersection-of-two-arrays
0383-ransom-note
0560-subarray-sum-equals-k
0807-custom-sort-string
1556-make-two-arrays-equal-by-reversing-subarrays
1786-count-the-number-of-consistent-strings
2163-kth-distinct-string-in-an-array
2502-sort-the-people

Binary Search

0074-search-a-2d-matrix
0167-two-sum-ii-input-array-is-sorted
0268-missing-number
0349-intersection-of-two-arrays

Sorting

0049-group-anagrams
0056-merge-intervals
0075-sort-colors
0169-majority-element
0229-majority-element-ii
0268-missing-number
0349-intersection-of-two-arrays
0455-assign-cookies
0807-custom-sort-string
1019-squares-of-a-sorted-array
1556-make-two-arrays-equal-by-reversing-subarrays
2502-sort-the-people

Bit Manipulation

0136-single-number
0268-missing-number
0476-number-complement
1786-count-the-number-of-consistent-strings

String

0005-longest-palindromic-substring
0006-zigzag-conversion
0012-integer-to-roman
0049-group-anagrams
0125-valid-palindrome
0151-reverse-words-in-a-string
0205-isomorphic-strings
0227-basic-calculator-ii
0383-ransom-note
0392-is-subsequence
0468-validate-ip-address
0678-valid-parenthesis-string
0807-custom-sort-string
0812-rotate-string
1078-remove-outermost-parentheses
1302-delete-characters-to-make-fancy-string
1356-minimum-number-of-moves-to-make-palindrome
1737-maximum-nesting-depth-of-the-parentheses
1786-count-the-number-of-consistent-strings
2032-largest-odd-number-in-string
2163-kth-distinct-string-in-an-array
2502-sort-the-people
2727-number-of-senior-citizens

Greedy

0455-assign-cookies
0605-can-place-flowers
0678-valid-parenthesis-string
0890-lemonade-change
1356-minimum-number-of-moves-to-make-palindrome
2032-largest-odd-number-in-string

Binary Indexed Tree

1356-minimum-number-of-moves-to-make-palindrome

Divide and Conquer

0169-majority-element

Counting

0169-majority-element
0229-majority-element-ii
0383-ransom-note
1786-count-the-number-of-consistent-strings
2163-kth-distinct-string-in-an-array

Simulation

0054-spiral-matrix
2132-convert-1d-array-into-2d-array
2271-rearrange-array-elements-by-sign

Matrix

0048-rotate-image
0054-spiral-matrix
0073-set-matrix-zeroes
0074-search-a-2d-matrix
1496-lucky-numbers-in-a-matrix
1791-richest-customer-wealth
2132-convert-1d-array-into-2d-array

Prefix Sum

0560-subarray-sum-equals-k

Union Find

0128-longest-consecutive-sequence

Dynamic Programming

0005-longest-palindromic-substring
0152-maximum-product-subarray
0392-is-subsequence
0678-valid-parenthesis-string

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
1245-user-activity-for-the-past-30-days-i
1258-article-views-i
1415-students-and-examinations
1509-replace-employee-id-with-the-unique-identifier
1724-customer-who-visited-but-did-not-make-any-transactions
1801-average-time-of-process-per-machine
1827-invalid-tweets
1877-find-followers-count
1882-the-number-of-employees-which-report-to-each-employee
1908-recyclable-and-low-fat-products
2087-confirmation-rate
2495-number-of-unique-subjects-taught-by-each-teacher

Stack

0227-basic-calculator-ii
0678-valid-parenthesis-string
1078-remove-outermost-parentheses
1737-maximum-nesting-depth-of-the-parentheses

String Matching

0812-rotate-string

About

leetcode solutions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published