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.
Thank you for your feedback! I fixed the description.
Hey! I am sorry, I actually didn't mean to post this. I will delete this! Thanks for your response.
This kata's description doesn't match the actual kata. The description asks us to return each of the elements in the diagonal of a 2-dimentional list while the actual kata is looking for the two largest elements to be returned.
Fixed for C++
Fixed for Python
I really enjoyed this kata. I do however have a couple of suggestions to improve your kata's description. In the Input section of the kata's description, you currently state "Jump back to the matching command #7 if the cell under the pointer is 1" for the "]" command. It should however state "Jump back to the matching command #7 if the cell under the pointer is non-zero". I also suggest that you explicitly state how your kata expects EOF conditions to to be handled for the "CAT" programs.
Hm, I never considered the possibility of such cases. Thanks for notifying me about this, I'll look into it when I'll have the time to do so.
Yep, I agree. There are not many wrong tests, so running multiple times should be enough to pass them, but those cases you mentioned are wrong threated by the kata tests (in Python at least).
I think that there might be a problem with the Python translation with respect to a few of the random tests. The following three boards reported that "True should equal False":
x x x
o o x
o o x
================
x x o
o x o
o x x
============
o x x
o x o
x x o
In the first case, if the last move was placing an "X" in the upper right corner, wouldn't this be a valid board position? In the last two examples, if the last move was placing an "X" in the center of the board, wouldn't this also be a valid board position?
Please note that this problem is happening with very low frequency. If you hit the "Attempt" button a couple of times, you will eventually pass all the random tests.
NOTE: I am assuming that the players don't always make the most advantageous move.
The preloaded solution for this kata contains a function named "two_oldest_ages(ages)" which doesn't match the kata's description. This kata's details section should be written in English, which is the Codewars standard.
Input validation has been done, so is not novel, and just adds a second task, unrelated to the essence of the kata. Don't.
Needs random tests. Because this.
Thank you, added tests
You don't have any "tests".
The tests for this kata are flawed. If you "null" out all spots for shoes in the ShoeRack and then submit that as your result, you will pass 100% of the tests.
Loading more items...