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
|
2066 Discussions
|
Please Login in order to post a comment
Python solution with Collections.Counter. Time: O(N), Space: O(1)
I am using this java solution but still getting 2 test case failed anyone hlep me , thanks in advance
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