---
title: "Discussion on \"4 Consecutive Character --> Leetcode November 2020 Challenge\" | Hashnode"
description: "Discussion on \"4 Consecutive Character --> Leetcode November 2020 Challenge\". Question\n\nGiven a string s, the power of the string is the maximum length of a non-empty substring that contains only one unique character.\nReturn the power of the string.\nExample 1:\nInput: s = \"leetcode\"\nOutput: 2\nExplanation: The substring \"ee\" is ..."
url: "https://hashnode.com/posts/4-consecutive-character-greater-leetcode-november-2020-challenge/5fa15f9624a897066ab25b5a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [4 Consecutive Character --> Leetcode November 2020 Challenge](https://codewithkeshav.hashnode.dev/4-consecutive-character-greater-leetcode-november-2020-challenge?utm_source=hashnode&utm_medium=feed)

Question Given a string s, the power of the string is the maximum length of a non-empty substring that contains only one unique character. Return the power of the string. Example 1: Input: s = "leetcode" Output: 2 Explanation: The substring "ee" is ...

Nov 3, 2020 · 3 min read · codewithkeshav.hashnode.dev  
Read the article

-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#array](https://hashnode.com/tag/array)

## Written by

[Keshav Chaurasia](https://hashnode.com/@keshavchaurasia)

@keshavchaurasia

  
[View profile](https://hashnode.com/@keshavchaurasia)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
