Skip to content

xiec1377/Leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leetcode

My Leetcode solutions

Hash Table

0205-isomorphic-strings
0290-word-pattern
0383-ransom-note

String

0205-isomorphic-strings
0290-word-pattern
0383-ransom-note

Counting

0383-ransom-note

Array

0016-3sum-closest
0018-4sum

Two Pointers

0016-3sum-closest
0018-4sum

Sorting

0016-3sum-closest
0018-4sum

LeetCode Topics

Tree

0100-same-tree
0112-path-sum
0226-invert-binary-tree

Depth-First Search

0100-same-tree
0112-path-sum
0226-invert-binary-tree

Breadth-First Search

0100-same-tree
0112-path-sum
0226-invert-binary-tree

Binary Tree

0100-same-tree
0112-path-sum
0226-invert-binary-tree

Array

0001-two-sum
0011-container-with-most-water
0015-3sum
0035-search-insert-position
0042-trapping-rain-water
0049-group-anagrams
0056-merge-intervals
0075-sort-colors
0121-best-time-to-buy-and-sell-stock
0128-longest-consecutive-sequence
0134-gas-station
0167-two-sum-ii-input-array-is-sorted
0209-minimum-size-subarray-sum
0215-kth-largest-element-in-an-array
0217-contains-duplicate
0219-contains-duplicate-ii
0228-summary-ranges
0238-product-of-array-except-self
0347-top-k-frequent-elements
0739-daily-temperatures
0792-binary-search
0883-car-fleet
0965-unique-email-addresses
1019-squares-of-a-sorted-array
1046-max-consecutive-ones-iii

Two Pointers

0011-container-with-most-water
0015-3sum
0042-trapping-rain-water
0075-sort-colors
0125-valid-palindrome
0167-two-sum-ii-input-array-is-sorted
1019-squares-of-a-sorted-array
2095-minimum-number-of-swaps-to-make-the-string-balanced

Greedy

0011-container-with-most-water
0134-gas-station
2095-minimum-number-of-swaps-to-make-the-string-balanced

Sorting

0015-3sum
0049-group-anagrams
0056-merge-intervals
0075-sort-colors
0215-kth-largest-element-in-an-array
0217-contains-duplicate
0242-valid-anagram
0347-top-k-frequent-elements
0883-car-fleet
1019-squares-of-a-sorted-array

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0049-group-anagrams
0128-longest-consecutive-sequence
0217-contains-duplicate
0219-contains-duplicate-ii
0242-valid-anagram
0347-top-k-frequent-elements
0965-unique-email-addresses

Sliding Window

0003-longest-substring-without-repeating-characters
0209-minimum-size-subarray-sum
0219-contains-duplicate-ii
1046-max-consecutive-ones-iii
1567-maximum-number-of-vowels-in-a-substring-of-given-length

Binary Search

0035-search-insert-position
0167-two-sum-ii-input-array-is-sorted
0209-minimum-size-subarray-sum
0792-binary-search
1046-max-consecutive-ones-iii

Prefix Sum

0209-minimum-size-subarray-sum
0238-product-of-array-except-self
1046-max-consecutive-ones-iii

String

0003-longest-substring-without-repeating-characters
0020-valid-parentheses
0049-group-anagrams
0125-valid-palindrome
0242-valid-anagram
0965-unique-email-addresses
1567-maximum-number-of-vowels-in-a-substring-of-given-length
2095-minimum-number-of-swaps-to-make-the-string-balanced
2800-minimum-string-length-after-removing-substrings

Divide and Conquer

0215-kth-largest-element-in-an-array
0347-top-k-frequent-elements

Heap (Priority Queue)

0215-kth-largest-element-in-an-array
0347-top-k-frequent-elements

Quickselect

0215-kth-largest-element-in-an-array
0347-top-k-frequent-elements

Dynamic Programming

0042-trapping-rain-water
0121-best-time-to-buy-and-sell-stock

Union Find

0128-longest-consecutive-sequence

Bucket Sort

0347-top-k-frequent-elements

Counting

0347-top-k-frequent-elements

Stack

0020-valid-parentheses
0042-trapping-rain-water
0739-daily-temperatures
0883-car-fleet
2095-minimum-number-of-swaps-to-make-the-string-balanced
2800-minimum-string-length-after-removing-substrings

Monotonic Stack

0042-trapping-rain-water
0739-daily-temperatures
0883-car-fleet

Simulation

2800-minimum-string-length-after-removing-substrings

About

My Leetcode solutions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published