1933. Check if String Is Decomposable Into Value-Equal Substrings
A value-equal string is a string where all characters are the same.
- For example,
"1111"
and"33"
are value-equal strings.- In contrast,
"123"
is not a value-equal string.Given a digit string
s``2``3
.Return
true
if you can decomposes
according to the above rules. Otherwise, returnfalse
.A substring is a contiguous sequence of characters in a string.
1 | class Solution { |