这道题是 LeetCode 第 1 题,也是很多人刷题的第一题。它本身不难,但它是**"用空间换时间"这个思维拐点**最适合拿来演示的载体——很多人写完暴力解法就去看答案了,恰恰错过了这道题真正值钱的部分。
Done with the today's DSA part. Did the following problems: Leetcode: > Koko eating bananas > Minimum number of bouquets Neetcode: > 2sum > Valid anagrams > Check duplicate elements 9:28 AM · Sep 25, ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results