哈希表
文章平均质量分 51
决定要好好毒树的Lucifer
这个作者很懒,什么都没留下…
展开
-
LeetCode187 - 重复的DNA (哈希表、哈希集合)
题目: The DNA sequence is composed of a series of nucleotides abbreviated as 'A', 'C', 'G', and 'T'. For example, "ACGAATTCCG" is a DNA sequence. When studying DNA, it is useful to identify repeated sequences within the DNA. Given a string s that represen原创 2022-02-14 00:20:38 · 263 阅读 · 0 评论 -
贪心法:LeetCode1218 - 最长定差子序列
题目: Given an integer array arr and an integer difference, return the length of the longest subsequence in arr which is an arithmetic sequence such that the difference between adjacent elements in the subsequence equals difference. A subsequence is a sequ原创 2022-02-13 19:58:23 · 366 阅读 · 0 评论