DSA-Questions
DSA-Questions copied to clipboard
Longest Consecutive Duplicate String
Hello !, I am a participant of hacktober fest 2021 , I would like to add this important question regarding strings.
Problem statement: Given a lowercase alphabet string s, return the length of the longest substring with same characters.
Constraints: 0<=n<=100000 , where n is length of string s. Example cases:
Example 1: s = "abbbba" Output: 4 Explanation: The longest substring is "bbbb".
Example 2: s = "aaabbb" Output: 3 Explanation: The longest substring is either 'aaa' or 'bbb'.
Please assign me this issuse.
I would like to solve this problem.please assign this to me
They are not considering dsa,cp,algorithm repository :( all the pr will not be considered in hacktoberfest but your contribution will be for lifetime, this will help many students to practice dsa . Thank you for your contribution :)