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.
I have the same error at 6th test
"Invalid value types (boolean): True should equal False".
I do not use any bool() functions, only return True or False.
What can it be?
I think I figured out whats the issue.
There is probably a True instead of a 1 in the grid. If you use something like isinstance(x, int) a bool will return True because bool is a subclass of int.
No more help needed, I found the origin.
I am testing Huffman encoding in Python: Passed tests : 2781 but Failed tests: 265
I don't undestand the following error
Log
frequencies(l)
l
encode([],l)
Test Passed
ERROR restore sorted sequence from frequencies should succeed: [] should equal ['l']
Can you help me Please
Unfortunatly I still don't find the error...
If you use isinstance:
isinstance returns you True if you compare "True" or "False" with int.
lst = [True]
isinstance(lst[0], int) == True
Hello,
I have the same error. All the other tests are valid. Did you find, what causes the error?
Is is possible to have the description of the 6th test "Should be invalid", I obtain the following error
Invalid value types (boolean): True should equal False
but I don't know why !!!