All contents and pictures on this website come from the Internet and are updated regularly every week. They are for personal study and research only, and should not be used for commercial purposes. Thank you for your cooperation.
All DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for example:
"ACGAATTCCG". When studying DNA, it is sometimes useful to identify repeated
sequences within the DNA.
Write a function to find all the 10-letter-long sequences (substrings) that occur more than
once in a DNA molecule.
Example:
Input: s = "AAAAACCCCCAAAAACCCCCCAAAAAGGGTTT"
Output: ["AAAAACCCCC", "CCCCCAAAAA"]
Difficulty:
Medium
Lock:
Normal
All contents and pictures on this website come from the Internet and are updated regularly every week. They are for personal study and research only, and should not be used for commercial purposes. Thank you for your cooperation.