avinash201199 / avinash201199/DSA-Questions

Longest Consecutive Duplicate String

Open
#398 2 comments 0 reactions 2 assignees Claimed by @shreyaa2410 View on GitHub
hacktoberfest
Dominant language
C++
Stars
88
Forks
167
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.