摘要: LeetCode 1 两数之和 1. 题目地址 https://leetcode.cn/problems/two-sum/?envType=study-plan-v2&envId=top-interview-150 2. 题解 这道题我们可以用哈希表来进行求解,具体操作如下: 1. 我们定义一个哈希 阅读全文
posted @ 2023-10-11 19:34 夏目^_^ 阅读(17) 评论(0) 推荐(0)
摘要: LeetCode 242 有效的字母异位词 1. 题目地址 https://leetcode.cn/problems/valid-anagram/description/?envType=study-plan-v2&envId=top-interview-150 2. 题解 这道题直接用哈希表求解即 阅读全文
posted @ 2023-10-11 19:25 夏目^_^ 阅读(17) 评论(0) 推荐(0)