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.
Same issue!
12 seconds... Even if go for the most naive solution it should work.
How come, that it's not?
Hi, there!
having this error:
tests/Fixture.cs(23,32): error CS7036: There is no argument given that corresponds to the required formal parameter 'sudoku' of 'Sudoku.IsValid(int[][])'
in C# the initial code looks like this:
class Sudoku
{
public Sudoku(int[][] sudokuData)
{
//Constructor here
}
public bool IsValid()
{
throw new NotImplementedException();
}
}
I had implemented IsValid() function but what I need to do in constructor????
pass a sudokuData to IsValid? any ideas?
It says there you only passed 4 tests, there are 25 tests. Under a certain condition, your function is not returning (the same as returning
None
), that's the error about.If it passed all tests - why their is an error? If my code do not return nothing how it passes tests?
Not an issue, it means that you didn't return anything.
STDERR
Traceback (most recent call last):
File "main.py", line 14, in
Test.describe("First 5 numbers", test_range(5) )
File "main.py", line 9, in test_range
test.assert_equals( len(result), n, 'Incorrect length for n = {}'.format(n))
TypeError: object of type 'NoneType' has no len()
What does that mean?
Time: 959ms Passed: 4 Failed: 0 Exit Code: 1
Oh, now I see.. Thank You
Excuse me, but how they see what is the test-case, and what is the expected answer?
I see only "Test passed" or "Failed" and if failed I see 'NO' should equal 'YES'.... Thank You