Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 554 Bytes

Day46_LeetCode1446.md

File metadata and controls

15 lines (11 loc) · 554 Bytes

Day 43: LeetCode 1446 [Consecutive Characters]

Problem Description: The power of the string is the maximum length of a non-empty substring that contains only one unique character. Given a string s, return the power of s.

Example 1: Input: s = "leetcode" Output: 2 Explanation: The substring "ee" is of length 2 with the character 'e' only.

Link to LeetCode Problem: https://leetcode.com/problems/consecutive-characters/description/

image