Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
lol
love these variable names
Obvi you don't have to look it up. Deriving the solution yourself is the fun part.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
i am ashamed of my solution now....
import re
added to main tests; solution is now no longer exposed on tracebackThis comment is hidden because it contains spoiler information about the solution
Fixed. Thank you for the feedback
The python decode random tests are already decoded. Solutions are given as input.
your algorthim is O(n) but it takes more steps because you are spliting the string and looping it
Smart. I will add more tests.
It turns out that it kind of is! I took the approach of recursively checking each possible removal.
if number of chars in modified string is divisible by the length of the set of unique chars in modified string then it probably passes.
aabbcc -> abc -> 6 % 3 === 0
But that shouldn't pass for something like aaaabb right?
Is this a cheat?
Loading more items...