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.
5 years old issue is still not resolved. Bad kata
Approved
python new test framework is required. updated in this fork
Your code will compare numbers against itself (which fails for cases when
n = 0
) since the diff between a number and itself is always0
Your solution does not take into account cases like
arr = [8, 4, 0], n = 4
. The expected result should be2
, but your solution returns0
Use single quotes unless string interpolation is required.
the spread operator didnt always exist.
I think I did this efore the spread operator existed. So ...args wasn't valid.
This comment is hidden because it contains spoiler information about the solution
Approved
python new test framework
Waowww! it is good solving ! :)
Numbers of best practices and clever are low. The comunity of Php is small ?
Loading more items...