Repeated DNA Sequences
Medium
String Matching Algorithms
A DNA string uses the letters A, C, G and T. Print every 10-letter-long sequence that occurs more than once, in lexicographic order, on a single line separated by spaces. Print an empty line if there is none.
Constraints
1 <= len(s) <= 10^5
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.