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
This comment is hidden because it contains spoiler information about the solution
input:
[1, 3, 2, 5, 7, 9, 4, 6, 8]
[4, 9, 8, 2, 6, 0, 3, 7, 5]
[7, 0, 6, 3, 8, 0, 2, 1, 9]
[6, 4, 3, 1, 5, 0, 7, 9, 2]
[5, 2, 1, 7, 9, 0, 8, 4, 6]
[9, 8, 0, 4, 2, 6, 5, 3, 1]
[2, 1, 4, 9, 3, 5, 6, 8, 7]
[3, 6, 0, 8, 1, 7, 9, 2, 4]
[8, 7, 0, 6, 4, 2, 1, 3, 5]
Expected result = False
Returns True
my code on the site returns True, but on my code editor returns False, is it bugged?
@akar-0 sorry, wont happen again
you need to put the 'return sum' inside your function
This comment is hidden because it contains spoiler information about the solution