相較於黃酒的戲腔,白酒帶來近代上海女伶的歌聲。
187. Repeated DNA Sequences
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 represents a DNA sequence, return all the 10-letter-long sequences (substrings) that occur more than once in a DNA molecule. You may return the answer in any order.
Example 1:
1 | Input: s = "AAAAACCCCCAAAAACCCCCCAAAAAGGGTTT" |
Example 2:
1 | Input: s = "AAAAAAAAAAAAA" |
香蕉鬆餅
可以做成鬆餅或蛋糕。
287. Find the Duplicate Number
Given an array of integers nums containing n + 1 integers where each integer is in the range [1, n] inclusive.
There is only one repeated number in nums, return this repeated number.
You must solve the problem without modifying the array nums and uses only constant extra space.
Example 1:
1 | Input: nums = [1,3,4,2,2] |
Example 2:
1 | Input: nums = [3,1,3,4,2] |
香水
記得我們學過氣味的語言,那就用它來說一段話吧。