Skip to content

Maanas-kaniti/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
0011-container-with-most-water
0016-3sum-closest
0026-remove-duplicates-from-sorted-array
0027-remove-element
0033-search-in-rotated-sorted-array
0035-search-insert-position
0049-group-anagrams
0053-maximum-subarray
0066-plus-one
0074-search-a-2d-matrix
0075-sort-colors
0081-search-in-rotated-sorted-array-ii
0134-gas-station
0136-single-number
0137-single-number-ii
0150-evaluate-reverse-polish-notation
0153-find-minimum-in-rotated-sorted-array
0154-find-minimum-in-rotated-sorted-array-ii
0162-find-peak-element
0164-maximum-gap
0167-two-sum-ii-input-array-is-sorted
0169-majority-element
0229-majority-element-ii
0283-move-zeroes
0303-range-sum-query-immutable
0560-subarray-sum-equals-k
0643-maximum-average-subarray-i
0724-find-pivot-index
0835-linked-list-components
0940-fruit-into-baskets
0966-binary-subarrays-with-sum
1019-squares-of-a-sorted-array
1603-running-sum-of-1d-array
1833-find-the-highest-altitude
2614-maximum-count-of-positive-integer-and-negative-integer
2866-longest-even-odd-subarray-with-threshold
3321-type-of-triangle
3381-shortest-subarray-with-or-at-least-k-i
3501-delete-nodes-from-linked-list-present-in-array
3644-minimum-positive-sum-subarray
3685-count-subarrays-of-length-three-with-a-condition
3748-sort-matrix-by-diagonals

Binary Search

0004-median-of-two-sorted-arrays
0033-search-in-rotated-sorted-array
0035-search-insert-position
0069-sqrtx
0074-search-a-2d-matrix
0081-search-in-rotated-sorted-array-ii
0153-find-minimum-in-rotated-sorted-array
0154-find-minimum-in-rotated-sorted-array-ii
0162-find-peak-element
0167-two-sum-ii-input-array-is-sorted
2614-maximum-count-of-positive-integer-and-negative-integer

Divide and Conquer

0004-median-of-two-sorted-arrays
0053-maximum-subarray
0169-majority-element

Database

0175-combine-two-tables
0596-classes-more-than-5-students
1182-game-play-analysis-iv
1245-user-activity-for-the-past-30-days-i
1670-patients-with-a-condition
1877-find-followers-count
1942-primary-department-for-each-employee

Two Pointers

0005-longest-palindromic-substring
0011-container-with-most-water
0016-3sum-closest
0026-remove-duplicates-from-sorted-array
0027-remove-element
0028-find-the-index-of-the-first-occurrence-in-a-string
0075-sort-colors
0125-valid-palindrome
0151-reverse-words-in-a-string
0167-two-sum-ii-input-array-is-sorted
0234-palindrome-linked-list
0283-move-zeroes
0908-middle-of-the-linked-list
1019-squares-of-a-sorted-array
2216-delete-the-middle-node-of-a-linked-list

String

0003-longest-substring-without-repeating-characters
0005-longest-palindromic-substring
0013-roman-to-integer
0014-longest-common-prefix
0020-valid-parentheses
0028-find-the-index-of-the-first-occurrence-in-a-string
0038-count-and-say
0049-group-anagrams
0058-length-of-last-word
0125-valid-palindrome
0151-reverse-words-in-a-string
0242-valid-anagram
1430-find-the-k-beauty-of-a-number
3349-maximum-length-substring-with-two-occurrences
3396-valid-word

Dynamic Programming

0005-longest-palindromic-substring
0053-maximum-subarray

Math

0007-reverse-integer
0009-palindrome-number
0013-roman-to-integer
0029-divide-two-integers
0050-powx-n
0066-plus-one
0069-sqrtx
0150-evaluate-reverse-polish-notation
0231-power-of-two
0326-power-of-three
0342-power-of-four
1411-convert-binary-number-in-a-linked-list-to-integer
1430-find-the-k-beauty-of-a-number
3321-type-of-triangle

Counting

0169-majority-element
0229-majority-element-ii
2614-maximum-count-of-positive-integer-and-negative-integer

Greedy

0011-container-with-most-water
0134-gas-station

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0013-roman-to-integer
0049-group-anagrams
0169-majority-element
0229-majority-element-ii
0242-valid-anagram
0560-subarray-sum-equals-k
0835-linked-list-components
0940-fruit-into-baskets
0966-binary-subarrays-with-sum
3349-maximum-length-substring-with-two-occurrences
3501-delete-nodes-from-linked-list-present-in-array

Trie

0014-longest-common-prefix

Stack

0020-valid-parentheses
0150-evaluate-reverse-polish-notation
0155-min-stack
0234-palindrome-linked-list

String Matching

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

Depth-First Search

2793-count-the-number-of-complete-components

Breadth-First Search

2793-count-the-number-of-complete-components

Union Find

2793-count-the-number-of-complete-components

Graph

2793-count-the-number-of-complete-components

Bit Manipulation

0029-divide-two-integers
0136-single-number
0137-single-number-ii
0231-power-of-two
0342-power-of-four
3381-shortest-subarray-with-or-at-least-k-i

Sorting

0016-3sum-closest
0049-group-anagrams
0075-sort-colors
0164-maximum-gap
0169-majority-element
0229-majority-element-ii
0242-valid-anagram
1019-squares-of-a-sorted-array
3321-type-of-triangle
3748-sort-matrix-by-diagonals

Recursion

0050-powx-n
0203-remove-linked-list-elements
0231-power-of-two
0234-palindrome-linked-list
0326-power-of-three
0342-power-of-four

Matrix

0074-search-a-2d-matrix
3748-sort-matrix-by-diagonals

Design

0155-min-stack
0303-range-sum-query-immutable

Bucket Sort

0164-maximum-gap

Radix Sort

0164-maximum-gap

Prefix Sum

0303-range-sum-query-immutable
0560-subarray-sum-equals-k
0724-find-pivot-index
0966-binary-subarrays-with-sum
1603-running-sum-of-1d-array
1833-find-the-highest-altitude
3644-minimum-positive-sum-subarray

Sliding Window

0003-longest-substring-without-repeating-characters
0643-maximum-average-subarray-i
0940-fruit-into-baskets
0966-binary-subarrays-with-sum
1430-find-the-k-beauty-of-a-number
2866-longest-even-odd-subarray-with-threshold
3349-maximum-length-substring-with-two-occurrences
3381-shortest-subarray-with-or-at-least-k-i
3644-minimum-positive-sum-subarray

Linked List

0203-remove-linked-list-elements
0234-palindrome-linked-list
0835-linked-list-components
0908-middle-of-the-linked-list
1411-convert-binary-number-in-a-linked-list-to-integer
2216-delete-the-middle-node-of-a-linked-list
3501-delete-nodes-from-linked-list-present-in-array

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published