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.
I am also facing the maketrans issue.
thanks!
It works now! cheers.
Can it be because of a dict copy?
(python) I am passing the first 10 tests (all unique letters and all duplicate ones). Yet, on the random ones the first one is always yelling:
Traceback: in
in permsol
TypeError: argument 2 to map() must support iteration
I am not using itertools. Any clue? thanks.
Interesting kata! typo for Specifity
I'd rather maintain something like this than a regex. I mean, python is supposed to be about readibility, no? Thanks for this clean solution anyway.
Yes, I understood why it was dry. But having to redo other kata when this one is relatively simple for a 6-5 can be felt like time consuming? I don't know.
Just a little something that would make me understand immediately (but it's your kata ;):
xbonacci(signature, nth)
signature is the start of the sequence, its length also determines which Xbonacci you are playing with ([0,1] -> 2 -> fibonacci, [0,0,1] -> 3 -> tribonaci...)
nth is the expected length of your return sequence
Simple and fresh kata. Maybe the explanation should be a little bit more verbose, but I approve.
This comment is hidden because it contains spoiler information about the solution