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
|
2064 Discussions
|
Please Login in order to post a comment
Insane python solution:
A C++ solution with min/max:
I wrote an exhaustive approach by finding all the invalid patterns, hahahaha
https://drive.google.com/file/d/1nFrYgtfssjbG8yOfxTytgTyc6gkrzI8A/view?usp=sharing
Python 3 solution:
Java 8 solution:
my c# code like this:
but it failed for test cases 3,5,14