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 error in js version
Read the description again(especially the lower part).
You also have to provide an
equals
function for the class.And a function which gives string representation of the vector
__str__
instead oftoString
in python.Also, your functions are returning lists, instead of vectors. The output should also be vector instances.
(This is why you get the above mentioned error. The test code checks if your output
equals
the expected, but there is noequals
function on the returned list)And, both dot and norm functions are wrong. Again, I would suggest carefully reading the description to see what those functions are supposed to return.
subtract method "[ 4, 6, 8 ]" - "[ 3, 4, 5 ]" = "[ 1, 2, 3 ]" and method toString returns '(1,2,3)'. Output say Value is not what was expected. Is Ok js version?