DSA-Questions icon indicating copy to clipboard operation
DSA-Questions copied to clipboard

Longest Consecutive Duplicate String

Open Monish-P opened this issue 4 years ago • 2 comments
trafficstars

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.

Monish-P avatar Oct 02 '21 11:10 Monish-P

I would like to solve this problem.please assign this to me

shreyaa2410 avatar Oct 02 '21 13:10 shreyaa2410

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 :)

avinash201199 avatar Oct 02 '21 17:10 avinash201199