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.
You are right, I was reading it wrong. I get back to a better solution. Thanks
a
@hobovsky I get that in python as well.
Reproducing: default code, completely unmodified -> Attempt
This is because the reference solution returns 0/1 instead of False/True
Please also read the last bullet point of this paragraph for some information on
False should equal to 1
. It's a result of a kind-of-a-bug in the testing framework, and it's related only to presentation. You are not able to fix it, it can be solved only by update of testing framework (which is planned, btw). It does not affect the tests though. Just make double sure that you interpret logs corectly, and I might be able to take a look at your solution later today.Sorry, that's a bit too much to debug. But I'm printing every maze and every one of them that fails, you can clearly see available path for it. Again, you're looking at logs incorrectly, For every 'False should equal 1', the failing maze is ABOVE, not below it. Because of your weird solution structure, I'd guess it's throwing errors somewhere in the class where it shouldn't.
I'd want the test code to print True/False instead of 1/0
The comparisons are probably fine but that's a bit scuffed...
This comment is hidden because it contains spoiler information about the solution
False = 0, True = 1, nothing to do with perfomance. You must be looking at the logs incorrectly. Did you read some answers to questions in the link from hobovsky?
..W.W.WW.
.........
.....W.W.
.W...W.WW
.W.......
W.W......
W....WW.W
.......W.
W..WW.W..
Now it happend for 84 test cases. So it happened 84 times this time
Yes, unfortunately it does. I don't understand, why other values than True or False are to be expected. Maybe my solution is not performant enough and then sometimes it times out? Would that output a 1?
You are right that for given maze, the expected answer should be
false
. However, I just finished the kata in C++ and encountered no problems. Please read this paragraph and check if you read the logs correctly.Does problem appear consistently every time you submit your solution?
.W....
W.....
W.....
.W.W..
.WWWW.
...W..
This maze in the tests outputs to me "False should equal to 1". But there is obviously no path, so 1 does not correlate to True. It happens actually at 79 Test Cases. Any hint?
wtf, nice
This comment is hidden because it contains spoiler information about the solution