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 can see other users solutions and learn a few things that way too.
This comment is hidden because it contains spoiler information about the solution
I confirm your code returns
True
, my python version is3.6.9
.Due to the indentation of
horizontal.clear() vertical.clear() matrix1.clear() matrix2.clear() matrix3.clear()
The initialization of the same lists won't take place more than two times.
Your solution fails for following test case:
7th column is invalid, but your solution retrns True.
first, check that you're using the correct input to compare to the expected result: when you log something to the console, it appears above the related assertion.
About the "issue/not an issue" part, this isn't an issue because all tests are correct. Hence this should be posted as a "question" (issue= wrong kata / question=user having trouble to solve the kata)
Generic message below (som parts do not apply here), where you'll see your messages are still missing important informations so that we actually can help you (ex: "I got the input by printing to the console" doesn't ensure us that you're using the actual input of the failing assertion, as said above):
Seems you're "rather new" to cw, so here are some general guidelines about the comments:
Issue
: problem in the kata itself (description, wrong tests, wrong internal solution...)Suggestions
: well, I guess that part is clearQuestion
anything else that is related to you having a problem solving a kata -> that's you, currently.When you post issues:
When you post a question: well, most of the above apply too x)
When you post code, use proper github markdown, so that it's readable.
cheers
This comment is hidden because it contains spoiler information about the solution
Your handling of columns is invalid. In following test case:
column 7 is invalid, but your solution returns True.
Resolving as not a kata issue.
Yes I did. I got the board using print statement. On running locally, it sucessfully returns false.
Do you know the input of failing test case? Did you try to recreate it locally?
Your code fails on validation of 3x3 blocks it seems
The input to the tests are easily available by printing them thus:
Next, review the definition of
blocks
from the description.See if you can find any help here.
Not a kata issue.
python can help with the headaches:)))))
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution