数据结构与算法 - Rust 语言实现

哈稀表相关的问题列表

容易

  1. 0001. 两数之和 Two Sum
  2. 0013. 罗马数字转整数 Roman to Integer
  3. 0217. 存在重复元素 Contains Duplicate
  4. 0219. 存在重复元素II Contains Duplicate II
  5. 0349. 两个数组的交集 Intersection of Two Arrays
  6. 0350. 两个数组的交集 II Intersection of Two Arrays II

TODO:

  • 169. Majority Element
  • 202.快乐数
  • 204. 计数质数
  • 205. 同构字符串
  • 242. Valid Anagram
  • 290. 单词规律
  • 387. 字符串中的第一个唯一字符
  • 594. 最长和谐子序列
  • 599. 两个列表的最小索引总和
  • 645. 错误的集合
  • 720. 词典中最长的单词
  • 884. 两句话中的不常见单词
  • 970. 强整数
  • 1207.独一无二的出现次数
  • 2006. Count Number of Pairs With Absolute Difference K
  • 2085. Count Common Words With One Occurrence
  • 2215. Find the Difference of Two Arrays
  • 2248. Intersection of Multiple Arrays
  • 2357. Make Array Zero by Subtracting Equal Amounts

中等

  1. 0012. 整数转罗马数字 Integer to Roman
  2. 0167. 两数之和 II - 输入有序数组 Two Sum II - Input Array Is Sorted
  3. 0532.数组中的数对 K-diff Pairs in an Array

TODO:

  • 3.无重复字符的最长子串
  • 49. Group Anagrams
  • 215. 数组中的第K个最大元素
  • 347. 前 K 个高频元素
  • 380. 常数时间插入、删除和获取随机元素
  • 451. 根据字符出现频率排序
  • 648. 单词替换
  • 692. 前K个高频单词
  • 718. 最长重复子数组
  • 2364. Count Number of Bad Pairs
  • 2442. Count Number of Distinct Integers After Reverse Operations