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.
This comment is hidden because it contains spoiler information about the solution
Python: the issue noted by @Matyt 7 years ago, that
bool
is a subclass ofint
and yet considered invalid, is still present.The following are all
True
in Python:Requiring the validation to fail on boolean values breaks the usual assumptions on these things (e.g. that a subclass can be used wherever the parent class can). At the very least, the fact that
bool
s are disallowed should be explicitly noted in the description.Python 3.11:
I passed the tests by only checking each of the little squares in the sudoku and ignoring rows + columns, does having an invalid square implicitly make an invalid row / column?
Thanks
This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/171.Please join the discussion to help us identify duplicate kata and retire them.This kata was decided to be kept and fixed. A new discussion has been started to collect potential ideas of fixing it: https://github.com/codewars/content-issues/issues/172 .
I have a AttributeError: 'bool' object has no attribute 'is_valid', my solution is correct, but it gives an error. Im used a DEF() and not CLASS(), help me please
Scala translation
There is no test for rule 2 and 3!
I was able to sumbit without having these validations in my solution...
Untested rules:
Rows may only contain integers: 1..N (N included)
Columns may only contain integers: 1..N (N included)
there is no test that checks for uniqueness of numbers in a small square
Insufficient tests. Sudoku rules checked only in squares but not in rows or columns. Instructions incomplete as well.
This comment is hidden because it contains spoiler information about the solution
I'm far from being an expert in Ruby, but the parentheses on the first line of initial code
class Sudoku()
causes an error and one needs to remove them to pass the tests.Ruby 3.0 should be enabled, see this to learn how to do it
VB Translation ready for review.
'Little squares' (3x3 in example above) may also only contain integers...
It took me 15 Minutes to work out what was ment with "little squares", due to my solution not passing with exactly that error. I mean. It's a made-up term anyway it seems. Also, obviously, i don't play Sudoku.
Shouldn't be too much of hassle to show what exactly a "little square" is supposed to be in the instructions i guess. :)
It would be great if the instructions of the question were explained clearly for the people who don't know what Sudoku is. For example, instead of saying that "Rows may only contain integers", I recommend that the uniqueness of the integers must be mentioned in that sentence clearly.
Loading more items...