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 is smart move to consider the total sum of elements, but what if we have different numbers and their multiplicity while the sum is the same ? Is it possible ?
Ok, I just learned items of a list don't need to be ordered the same way to make an evaluation between 2 arrays.
(This will be invalid in PHP)
A solution that needs space proportional to the input numbers' values won't be able to handle the random tests.
Approved
python new test framework is required. updated in this fork
Author solution fails for test cases such as
Your post was visible in the homepage too for people who hasn't solved the kata yet.
I'm responding to a comment on the actual answer, so I don't understand how I'm spoiling anything?
Ivsz, use spoiler flag next time please.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
this is the best one imo
No random tests.
This comment is hidden because it contains spoiler information about the solution
Loading more items...