Skip to content

alexusljf/LeetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode

Collection of my LeetCode Solutions

Created using LeetHub

LeetCode Topics

Array

0001-two-sum
0011-container-with-most-water
0015-3sum
0049-group-anagrams
0056-merge-intervals
0121-best-time-to-buy-and-sell-stock
0153-find-minimum-in-rotated-sorted-array
0200-number-of-islands
0217-contains-duplicate
0283-move-zeroes
0347-top-k-frequent-elements
0605-can-place-flowers
0643-maximum-average-subarray-i
0724-find-pivot-index
0792-binary-search
1319-unique-number-of-occurrences
1392-find-the-difference-of-two-arrays
1528-kids-with-the-greatest-number-of-candies
2232-adding-spaces-to-a-string
2308-divide-array-into-equal-pairs
2478-longest-nice-subarray
2552-maximum-sum-of-distinct-subarrays-with-length-k
3154-maximum-value-of-an-ordered-triplet-i
3430-count-days-without-meetings
3475-minimum-operations-to-make-binary-array-elements-equal-to-one-i

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0049-group-anagrams
0217-contains-duplicate
0242-valid-anagram
0347-top-k-frequent-elements
0424-longest-repeating-character-replacement
0768-partition-labels
1319-unique-number-of-occurrences
1392-find-the-difference-of-two-arrays
2308-divide-array-into-equal-pairs
2552-maximum-sum-of-distinct-subarrays-with-length-k

Sliding Window

0003-longest-substring-without-repeating-characters
0424-longest-repeating-character-replacement
0643-maximum-average-subarray-i
2478-longest-nice-subarray
2552-maximum-sum-of-distinct-subarrays-with-length-k
3475-minimum-operations-to-make-binary-array-elements-equal-to-one-i

Two Pointers

0005-longest-palindromic-substring
0011-container-with-most-water
0015-3sum
0125-valid-palindrome
0283-move-zeroes
0345-reverse-vowels-of-a-string
0392-is-subsequence
0768-partition-labels
1566-check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence
1894-merge-strings-alternately
2232-adding-spaces-to-a-string

String

0003-longest-substring-without-repeating-characters
0005-longest-palindromic-substring
0049-group-anagrams
0125-valid-palindrome
0242-valid-anagram
0345-reverse-vowels-of-a-string
0392-is-subsequence
0424-longest-repeating-character-replacement
0768-partition-labels
1146-greatest-common-divisor-of-strings
1566-check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence
1894-merge-strings-alternately
2232-adding-spaces-to-a-string
2470-removing-stars-from-a-string

String Matching

1566-check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence

Simulation

2232-adding-spaces-to-a-string
2470-removing-stars-from-a-string

Linked List

0002-add-two-numbers
0021-merge-two-sorted-lists
0206-reverse-linked-list

Recursion

0002-add-two-numbers
0021-merge-two-sorted-lists
0206-reverse-linked-list

Tree

0100-same-tree
0104-maximum-depth-of-binary-tree
0226-invert-binary-tree
0774-maximum-depth-of-n-ary-tree
2493-reverse-odd-levels-of-binary-tree

Depth-First Search

0100-same-tree
0104-maximum-depth-of-binary-tree
0200-number-of-islands
0226-invert-binary-tree
0774-maximum-depth-of-n-ary-tree
2493-reverse-odd-levels-of-binary-tree

Breadth-First Search

0100-same-tree
0104-maximum-depth-of-binary-tree
0200-number-of-islands
0226-invert-binary-tree
0774-maximum-depth-of-n-ary-tree
2493-reverse-odd-levels-of-binary-tree

Binary Tree

0100-same-tree
0104-maximum-depth-of-binary-tree
0226-invert-binary-tree
2493-reverse-odd-levels-of-binary-tree

Math

0002-add-two-numbers
0070-climbing-stairs
1146-greatest-common-divisor-of-strings

Dynamic Programming

0005-longest-palindromic-substring
0070-climbing-stairs
0121-best-time-to-buy-and-sell-stock
0392-is-subsequence

Stack

2470-removing-stars-from-a-string

Bit Manipulation

2308-divide-array-into-equal-pairs
2478-longest-nice-subarray
3475-minimum-operations-to-make-binary-array-elements-equal-to-one-i

Counting

0347-top-k-frequent-elements
2308-divide-array-into-equal-pairs

Queue

3475-minimum-operations-to-make-binary-array-elements-equal-to-one-i

Prefix Sum

0724-find-pivot-index
3475-minimum-operations-to-make-binary-array-elements-equal-to-one-i

Greedy

0011-container-with-most-water
0605-can-place-flowers
0768-partition-labels

Sorting

0015-3sum
0049-group-anagrams
0056-merge-intervals
0217-contains-duplicate
0242-valid-anagram
0347-top-k-frequent-elements
3430-count-days-without-meetings

Divide and Conquer

0347-top-k-frequent-elements

Heap (Priority Queue)

0347-top-k-frequent-elements

Bucket Sort

0347-top-k-frequent-elements

Quickselect

0347-top-k-frequent-elements

Binary Search

0153-find-minimum-in-rotated-sorted-array
0792-binary-search

Union Find

0200-number-of-islands

Matrix

0200-number-of-islands

Memoization

0070-climbing-stairs

About

LeetCode Solutions - Made with LeetHub (idk which version)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published