Skip to content

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

Open
codetheorem opened this issue Oct 2, 2020 · 5 comments
Open

Repetitions #4

codetheorem opened this issue Oct 2, 2020 · 5 comments

Comments

@codetheorem
Copy link
Member

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

@prajwlr
Copy link
Contributor

prajwlr commented Oct 2, 2020

Hi. I'd love to contribute. Please assign it to me.

@codetheorem
Copy link
Member Author

@prajwlr go ahead

prajwlr added a commit to prajwlr/Solve-It that referenced this issue Oct 2, 2020
@prajwlr
Copy link
Contributor

prajwlr commented Oct 2, 2020

@prajwlr go ahead

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.

@solanki2899
Copy link
Contributor

Can i do in python?

codetheorem added a commit that referenced this issue Oct 5, 2020
Added Repitetions.cpp - Issue #4
@shrinishant
Copy link
Contributor

Hii, I would love to contribute to this issue.

vinayaksh42 added a commit that referenced this issue Oct 14, 2021
Added solutions of repition and weird algorithm.#4 #1
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
Projects
None yet
Development

No branches or pull requests

4 participants