Search
⌘K

Leetcode 1446. Consecutive Characters

Return the length of the longest contiguous run of the same character in string s — i.e., the maximum length of any substring made of a single repeated character. (n ≤ 500, lowercase letters.)

Asked at:

Meta


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Early September, 2025

Meta

Senior

Comments

Your account is free and you can post anonymously if you choose.