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.
The python's version of this Kata should be rewrite. The implementation of the Node class is not specified. what's more, the Node class is nearly meaningless and increases difficulty unnecessarily. It would be much better to change the way the graph is stored.
The massive test (only) gives me the following error:
That means some tests don't pass a list, which contradicts the description: Write a sort function that will sort a massive list of strings in caseless, lexographic order.
Hello. I need help. I believe I'm missing some important fundamentals here and the question is dumb, but I can't get the data.
If I write "return grid" it returns plain list of coordinates without any other data. So I see something like [[(0,0),(0,1),..],[(1,1),(1,2),...]etc] instead of the expected matrix blueprint.
I know how to do it if the function takes the matrix itself, but I don't understand what am I suppose to do with plain list of coordinates.
So, help, please tell me what am I doing wrong.
For the record: I believe using "blueprint = grid1_blueprint" in the function must work but it returns an error.
This comment is hidden because it contains spoiler information about the solution
The anticheat is not good enough.
The maximum word length is actually
5
characters.Instructions are hinting at trie, and a trie is used in tests.
But mergesort will pass.
So really, the kata is just "implement regular sorting" and all the rest is just misleading/irrelevant.
Also: it should probably be asking for something iterable, not an iterator. That's just weird.
I get this error when I try to test my function:
I tried resetting the test code, and it didn't help.
Here's the first line of the test code:
I also tried adding a list of functions and types to export to my module's declaration, but it didn't help either.
After poking around with importing HSpec pieces to try to run them in main, I found the solution on the Hspec github: running-specs
I put
main = hspec spec
in my testing module and it worked. Is this an issue with the kata?python: the contract of the node class should be given. Especially, that it does not have an implemented
__hash__
method...How many tests are there?
Passed input is susceptible to mutation and it affects tests.
I agree with the other warriors who found the Node objects to be unnecessary.
I think this kata could be improved by completely removing the Node class, changing the test cases to a simple array (list of lists) of 0's and 1's, and changing the solutions to a list of tuples.
The matrices are transposed during
string -> list of lists of nodes
conversion, so the logs (which should not be there in the first place) are wrong.No random tests.
Language-specific blocks should be used in the description.
Loading more items...