Leetcode
LC 2013 LC 2013
Solution to LeetCode 2013 Detect Squares. LeetCode 2013Detect Squares (Median). [link] class DetectSquares(object):
2022-07-27
LC 2034 LC 2034
Solution to LeetCode 2034 Stock Price Fluctuation LeetCode 2034Stock Price Fluctuation (Medium). [link] Use a HashMap to
2022-07-23
LC 1 & LC 454 LC 1 & LC 454
Solution to LeetCode 1 Two Sum & LeetCode 454 4 Sum II LeetCode 1Two Sum (Easy) [link] 梦开始的地方。 This is where Dream
2022-05-12
LC 202 LC 202
Solution to LeetCode 202 Happy Number LeetCode 202Happy Number (Easy) [link] 1] Hash Set. The calculated sum cannot be v
2022-05-11
LC 349 & LC 350 LC 349 & LC 350
Solution to LeetCode 349 Intersection of Two Arrays and LeetCode 350 Intersection of Two Arrays II. LeetCode 349Intersec
2022-05-10
LC 49 & LC 242 & LC 383 LC 49 & LC 242 & LC 383
Solution to LeetCode 49 Group Anagrams, LeetCode 242 Valid Anagram, and LeetCode 383 Ransom Note. LeetCode 49Group Anagr
2022-05-09
LC 884 LC 884
Solution to LeetCode 884 Uncommon Words from Two Sentences. LeetCode 884Uncommon Words from Two Sentences (Medium). [lin
2022-02-22
LC 169 LC 169
Solution to LeetCode 169 Majority Element. LeetCode 169Majority Element (Easy). [link] 1] HashTable. Use HashTable to co
2022-01-23
LC 748 LC 748
Solution to LeetCode 748 Shortest Completing Word. LeetCode 748Shortest Completing Word (Easy). [link] Note that the let
2022-01-22
LC 146 LC 146
Solution to LeetCode 146 LRU Cache. LeetCode 146LRU Cache (Medium). [link] The problem requires functions get and put mu
2022-01-21