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.
We cant help without seeing your code ~~ and in what langugae? ~~~~~
Why don't you simply convert the input to a string (if it is already a string, that'll be ok too)? It's not a kata issue, use
Question
instead when the problem is with your code.Yes,it is and I am doing just that,but I don't know,why it is not working out. how do we check if input is an integer?
I am using the isdgiit() functiom.
It's already there, isn't it?
Hi,I need help with the last test case,where the input is 5,my code is returning 5 as the output,but there is some confusion about the type of the output,whether it should be a string or an integer?
Yes, that's how sudoku board validation works, and I think it's explained in description too. If any of these rules is broken, then it's not complete.
So you are saying that I have to check the board in three ways? Horizontally,vertically and by 3*3 rule? If yes then which rule has the final say in determining the completeness of the board?
Because there may be numbers repeating in
horizontal
orvertical
lines.can you please explain,how?
If you're only solving for 3x3 squares, you might miss some boards that are invalid.
I am using python
Yeah, sure.
You didn't say the language, but if it is Python the tests are fine.
After spending an entire day solving this kata,I have come to the conclusion that there is a bug in it:(. If my logic were faulty it wouldn't have worked for any of the sample tests but it is unbelievable that my code runs fine for 5 out of 6 tests and the one test it's not passing is giving all signs of a 'Finished' Board. so my code is showing it to be Finished.
I still ask for help,if I am doing something wrong,please correct me,I am solving the sudoku by 3*3 rule.
This comment is hidden because it contains spoiler information about the solution
Loading more items...