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'm confused, is
a = [2; 2; 3]
b = [4; 9; 9]
supposed to return true or false?
It was not easy for me. Thank you guys!
You forgot in the description "... with the same multiplicities...".
9 is squared 3, 9 is squared 3, 4 is squared 2
a = [3, 2, 2]
b = [9, 9, 4]
should be true.
Where do you see that?
This comment is hidden because it contains spoiler information about the solution
Ok
You are failing the previous test. On the first line of your function print the input to see where you are failing.
@Lex88 for python - use print() statements inside your function.
This is a bit offtopic but how do i see what the testcase 5 is?
I am also failing just this one test but I don't know how it failed.
I have got a fail on the test case:
[] None
I have returned False, but received message about failing:
False should equal True
I don’t quite understand why it is should equal True.
Making sure what you try to sort is a list first? Read the description again, specially the remarks part.
I'm passing all the test it throws at my code, but I keep getting the following exit error:
Traceback (most recent call last):
File "main.py", line 21, in
test.assert_equals(comp(a1, a2), False)
File "/home/codewarrior/solution.py", line 3, in comp
array2.sort()
AttributeError: 'NoneType' object has no attribute 'sort'
I know what the problem is in the use of the sort() method but what's the best way of rectifying the problem? Any feedback would be greatly appreciated, thanks! :)