-
Notifications
You must be signed in to change notification settings - Fork 13
Repetitions #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
Hi. I'd love to contribute. Please assign it to me. |
@prajwlr go ahead |
prajwlr
added a commit
to prajwlr/Solve-It
that referenced
this issue
Oct 2, 2020
Hey @codetheorem ! I have created a pull request. Hope you find it useable. If not, please let me know the further changes to be made. |
prajwlr
added a commit
to prajwlr/Solve-It
that referenced
this issue
Oct 2, 2020
Can i do in python? |
Hii, I would love to contribute to this issue. |
Shivanshu97i
added a commit
to Shivanshu97i/Solve-It
that referenced
this issue
Oct 14, 2021
Shivanshu97i
added a commit
to Shivanshu97i/Solve-It
that referenced
this issue
Oct 16, 2021
Shivanshu97i
added a commit
to Shivanshu97i/Solve-It
that referenced
this issue
Oct 16, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Time limit: 1.00 s Memory limit: 512 MB
You are given a DNA sequence: a string consisting of characters A, C, G, and T. Your task is to find the longest repetition in the sequence. This is a maximum-length substring containing only one type of character.
Input
The only input line contains a string of n characters.
Output
Print one integer: the length of the longest repetition.
Constraints
1≤n≤106
Example
Input:
ATTCGGGA
Output:
3
The text was updated successfully, but these errors were encountered: