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'm sure that u are creating a new node with Node(pos), a node with default values like passable = True, to access to a node in the grid just pos.position or pos.passable.
I think the description would look a lot cleaner with Conditional rendering.
Fork
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.
well i know im the dumb here, but this katas description is just way off.
Node
classthe node.position returns no valuable information, at least for dumb me.
the node.passable returns true for every position.. great invention..
def find_shortest_path(grid, start_node, end_node):
S0110
01000
01010
00010
0001E
(0,0) True
(0,1) True
(0,2) True
(0,3) True
(0,4) True
(1,0) True
(1,1) True
(1,2) True
(1,3) True
(1,4) True
(2,0) True
(2,1) True
(2,2) True
(2,3) True
(2,4) True
(3,0) True
(3,1) True
(3,2) True
(3,3) True
(3,4) True
(4,0) True
(4,1) True
(4,2) True
(4,3) True
(4,4) True
how im supposed to know which node is truelly passable?
I guess you are refering to the Haskell version of this kata (it's important to always say the langauge you are using). I have not solved this kata in Haskell so I have no idea about the design of the tests. Unfortunately, changing it would invalidate all submitted solutions, which is an eventuality rejected as much as possible. So I'm sorry but you have to do with it.
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.
I don't think that this should be 3kyu.. there are a plenty of very similar katas rated 4kyu
Oh no, it's worse. For some reason author flips labyrinth 90 degrees from it's string representation. Why?
This comment is hidden because it contains spoiler information about the solution
there is too much text in stdout or stderr
The "massive" input is only 83681 elements long even though the description says "there will be hundreds of thousands of words to sort". I think the test cases were changed at some point to be lighter but now you can pass them with any sub-
O(n^2)
algorithm (in fact, a pure CO(n^2)
algorithm works too).The anticheat is not good enough.
The maximum word length is actually
5
characters.Loading more items...