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.
Already raised as issue a bucnh of messages below, so closing.
Cheers.
This is good practice, but why don’t you write random tests? How can we know if our solution is correct?
Haskell translation
Huhh... Finally got it after 3 days of tring it. Now don't start saying its been 8 days, I didn't try every single day.
I'm not at all getting a proper idea on how solve this question. Can anyone help me?
Almost all languages:
Suggested generation scheme can be found in the (currently pending) Scala and Python versions.
Python fork with said generation scheme
Just copy them from our Scala translation, it's good enough and very explicit about how it generates.
I removed broken tests, you can retry your solution.
I removed broken tests, you can retry your solution.
I removed broken tests, you can retry your solution.
This comment is hidden because it contains spoiler information about the solution
Duplicate issue.
I probably approved a buggy fork, and I will take a look at the issue. But having it reported twice is good enough, we do not need third report :)
There seems to be a problem with the python version. The expected solution often doesn't even have all the letters in the triplets.
Example:
triplets = [
['w', 'f', 'x'],
['i', 'm', 'l'],
['a', 'f', 's'],
['g', 'p', 'f'],
['o', 'b', 'x'],
['r', 's', 'u'],
['c', 'n', 'h']
]
Is somehow expected to result in 'kleqpiufzh'.
Several letters are missing from the result.
I think I have encountered a problem with the random tests in Python.
In the following triplets lets have a look at the char "o".
In all the triplets it is present, it is in the first place.
triplets = [
['g', 't', 'j'],
['e', 'f', 'w'],
['o', 'c', 'e'],
['z', 't', 'n'],
['h', 'g', 'x'],
['e', 'b', 'v'],
['t', 'y', 'q'],
['p', 'b', 'j'],
['g', 'm', 'y'],
['z', 'k', 'j'],
['x', 'c', 'w'],
['o', 'd', 'p'],
['x', 'd', 'y']
]
The solution is as follows:
It should work for random inputs too: 'hzogktxmndycqpefbwvj' should equal 'hgoctkj'
the letter "o" seems to be in the third place of the solution, but there is no triplet that indicates it's position in the result string.
Maybe I am just not good enough at programming but this does not make any sense to me :(
Loading more items...