Ezvor

1933. Check if String Is Decomposable Into Value-Equal Substrings

EasyString Preparing judge… LeetCode
String

Hints

Hint 1
Keep looking for 3-equals, if you find a 3-equal, keep going. If you don't find a 3-equal, check if it is a 2-equal.
Hint 2
Make sure that it is the only 2-equal.
Hint 3
If it is neither a 3-equal nor a 2-equal, then it is impossible.