We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Sherlock and the Valid String
Sherlock and the Valid String
Sort by
recency
|
2048 Discussions
|
Please Login in order to post a comment
python -
def isValid(s):
The input "aabbbccc" is not a valid one cz at least 2 characters has to be removed to make this valid. But the editorial solutions consider this input as "valid". How's that possible? Am I missing something obvious here?
Perl:
My answer with Typescript, can be increase [point] to increase number of character can be remove