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.
This comment is hidden because it contains spoiler information about the solution
Problem with c# test case 5.
I add console output for input params and get next:
Test output:
Test5
Expected: True
But was: False
at AreTheySameTests.Test5 () [0x00000] in :0
Input params:
A length: 9
a=[121, 144, 19, 161, 19, 144, 19, 11, 1008]
B length: 8
b=[121, 14641, 20736, 36100, 25921, 361, 20736, 361]
Inline execution log:
Not found b in a: 36100
36100 = 190 * 190, and array a don't contain 190.
Test 5 like part of description (only to array a added 1008):
" a = [121, 144, 19, 161, 19, 144, 19, 11]
b = [121, 14641, 20736, 36100, 25921, 361, 20736, 361]
comp(a,b) returns false because in b 36100 is not the square of any number of a."
Add please {50, 25} to test cases.
This solution pass all test cases (and previus subversion), but have error (don't count order).
I just did not read the full condition before sent the final result. When I saw that moment, I made a second version of the solution.
It is necessary to add to this kata test incorrect sequence.
Sorry for bad english.