Skip to content

About

My solutions to LeetCode problems

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

211 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A collection of LeetCode questions to ace the coding interview! - Created using LeetHub v2

LeetCode Topics

Hash Table

0003-longest-substring-without-repeating-characters
0012-integer-to-roman
0013-roman-to-integer
0036-valid-sudoku
0187-repeated-dna-sequences
0202-happy-number
0290-word-pattern
0349-intersection-of-two-arrays
0383-ransom-note
0387-first-unique-character-in-a-string
0395-longest-substring-with-at-least-k-repeating-characters
0424-longest-repeating-character-replacement
0438-find-all-anagrams-in-a-string
0763-partition-labels
1358-number-of-substrings-containing-all-three-characters
2516-take-k-of-each-character-from-left-and-right

String

0003-longest-substring-without-repeating-characters
0005-longest-palindromic-substring
0008-string-to-integer-atoi
0012-integer-to-roman
0013-roman-to-integer
0028-find-the-index-of-the-first-occurrence-in-a-string
0058-length-of-last-word
0125-valid-palindrome
0131-palindrome-partitioning
0187-repeated-dna-sequences
0214-shortest-palindrome
0290-word-pattern
0345-reverse-vowels-of-a-string
0383-ransom-note
0387-first-unique-character-in-a-string
0395-longest-substring-with-at-least-k-repeating-characters
0424-longest-repeating-character-replacement
0438-find-all-anagrams-in-a-string
0443-string-compression
0541-reverse-string-ii
0647-palindromic-substrings
0657-robot-return-to-origin
0680-valid-palindrome-ii
0686-repeated-string-match
0763-partition-labels
0796-rotate-string
0917-reverse-only-letters
1208-get-equal-substrings-within-budget
1358-number-of-substrings-containing-all-three-characters
1456-maximum-number-of-vowels-in-a-substring-of-given-length
1541-minimum-insertions-to-balance-a-parentheses-string
2024-maximize-the-confusion-of-an-exam
2516-take-k-of-each-character-from-left-and-right
2730-find-the-longest-semi-repetitive-substring

Counting

0383-ransom-note
0387-first-unique-character-in-a-string

Two Pointers

0005-longest-palindromic-substring
0028-find-the-index-of-the-first-occurrence-in-a-string
0125-valid-palindrome
0202-happy-number
0345-reverse-vowels-of-a-string
0349-intersection-of-two-arrays
0443-string-compression
0541-reverse-string-ii
0647-palindromic-substrings
0680-valid-palindrome-ii
0763-partition-labels
0917-reverse-only-letters

Greedy

0680-valid-palindrome-ii
0763-partition-labels
1541-minimum-insertions-to-balance-a-parentheses-string
1838-frequency-of-the-most-frequent-element

Queue

0232-implement-queue-using-stacks
0387-first-unique-character-in-a-string

Array

0036-valid-sudoku
0046-permutations
0059-spiral-matrix-ii
0074-search-a-2d-matrix
0289-game-of-life
0349-intersection-of-two-arrays
0456-132-pattern
0463-island-perimeter
0713-subarray-product-less-than-k
1343-number-of-sub-arrays-of-size-k-and-average-greater-than-or-equal-to-threshold
1838-frequency-of-the-most-frequent-element

Binary Search

0074-search-a-2d-matrix
0349-intersection-of-two-arrays
0456-132-pattern
0713-subarray-product-less-than-k
1208-get-equal-substrings-within-budget
1838-frequency-of-the-most-frequent-element
2024-maximize-the-confusion-of-an-exam

Matrix

0036-valid-sudoku
0059-spiral-matrix-ii
0074-search-a-2d-matrix
0289-game-of-life
0463-island-perimeter

Simulation

0059-spiral-matrix-ii
0289-game-of-life
0657-robot-return-to-origin

Sliding Window

0003-longest-substring-without-repeating-characters
0187-repeated-dna-sequences
0395-longest-substring-with-at-least-k-repeating-characters
0424-longest-repeating-character-replacement
0438-find-all-anagrams-in-a-string
0713-subarray-product-less-than-k
1208-get-equal-substrings-within-budget
1343-number-of-sub-arrays-of-size-k-and-average-greater-than-or-equal-to-threshold
1358-number-of-substrings-containing-all-three-characters
1456-maximum-number-of-vowels-in-a-substring-of-given-length
1838-frequency-of-the-most-frequent-element
2024-maximize-the-confusion-of-an-exam
2516-take-k-of-each-character-from-left-and-right
2730-find-the-longest-semi-repetitive-substring

Prefix Sum

0713-subarray-product-less-than-k
1208-get-equal-substrings-within-budget
1838-frequency-of-the-most-frequent-element
2024-maximize-the-confusion-of-an-exam

Sorting

0349-intersection-of-two-arrays
1838-frequency-of-the-most-frequent-element

Divide and Conquer

0395-longest-substring-with-at-least-k-repeating-characters

String Matching

0028-find-the-index-of-the-first-occurrence-in-a-string
0214-shortest-palindrome
0572-subtree-of-another-tree
0686-repeated-string-match
0796-rotate-string

Z Algorithm

0028-find-the-index-of-the-first-occurrence-in-a-string
0187-repeated-dna-sequences
0214-shortest-palindrome
0686-repeated-string-match

Knuth–Morris–Pratt Algorithm

0028-find-the-index-of-the-first-occurrence-in-a-string
0214-shortest-palindrome
0686-repeated-string-match

Boyer–Moore String-Search Algorithm

0028-find-the-index-of-the-first-occurrence-in-a-string
0187-repeated-dna-sequences
0686-repeated-string-match

Bit Manipulation

0187-repeated-dna-sequences
0461-hamming-distance

Rolling Hash

0187-repeated-dna-sequences
0214-shortest-palindrome

Hash Function

0187-repeated-dna-sequences
0214-shortest-palindrome
0572-subtree-of-another-tree

Stack

0094-binary-tree-inorder-traversal
0232-implement-queue-using-stacks
0456-132-pattern
1541-minimum-insertions-to-balance-a-parentheses-string

Monotonic Stack

0456-132-pattern

Ordered Set

0456-132-pattern

Dynamic Programming

0005-longest-palindromic-substring
0131-palindrome-partitioning
0647-palindromic-substrings

Manacher

0005-longest-palindromic-substring
0214-shortest-palindrome

Bracket Sequences

1541-minimum-insertions-to-balance-a-parentheses-string

Math

0012-integer-to-roman
0013-roman-to-integer
0202-happy-number

Design

0232-implement-queue-using-stacks

Tree

0094-binary-tree-inorder-traversal
0098-validate-binary-search-tree
0572-subtree-of-another-tree

Depth-First Search

0094-binary-tree-inorder-traversal
0098-validate-binary-search-tree
0463-island-perimeter
0572-subtree-of-another-tree

Binary Tree

0094-binary-tree-inorder-traversal
0098-validate-binary-search-tree
0572-subtree-of-another-tree

Floyd's Cycle Finding Algorithm

0202-happy-number

Breadth-First Search

0463-island-perimeter

Backtracking

0046-permutations
0131-palindrome-partitioning

Binary Search Tree

0098-validate-binary-search-tree

About

My solutions to LeetCode problems

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages