Given a string s consisting of digits, determine if s can be partitioned into consecutive value equal substrings such that:
Exactly one substring has a length of
All other substrings have a length of
A substring is considered value equal if every character within it is identical.
Return true if s can be decomposed under these conditions, or false otherwise.
Constraints:
s.length
s consists only of digits
Given a string s consisting of digits, determine if s can be partitioned into consecutive value equal substrings such that:
Exactly one substring has a length of
All other substrings have a length of
A substring is considered value equal if every character within it is identical.
Return true if s can be decomposed under these conditions, or false otherwise.
Constraints:
s.length
s consists only of digits