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.
It loops back to 1
wait...
It is. Possibly the actual and expected values were switched in the
assert
( and your answer was wrong, not the expected value ). This has been fixed, I think. ( It would help if you mentioned what language you were having this problem with. )If this really happens ( and is still happening ), please raise an issue.
This comment is hidden because it contains spoiler information about the solution
Same for me :-(
All the tests are working but too slow to be submitted...
This comment is hidden because it contains spoiler information about the solution
when you say if(other == 0) continue it just skips that number and moves onto the next number so if all the other numbers are divisible it would return true when actually because one of the numbers was 0 it should return false since division by zero is not allowed. You may have already figured this out by now since this is 7 months later but try changing the continue to a return false and it should work.
Doesn't matter. The whole idea is to improve yourself. If their solution is cleaner or faster, learn why and try that in another Kata. And often the solutions that are the shortest aren't easily readable or perform the quickest.
By the way, your solution is perfect... but it isn't necessary to create a new array in order to sort. You can do it with the same array I passed you as a parameter.
Tomas DRS,
:)
Good!! keep on practising and ask any doubt! ! ;-)
check my website on which I write about programming.
www.toderesa97.com
Best regards,
Tomas DRS :-)
hey, I'm learning programming, hear opinions from who is starting! I enjoyed your "kata" (as it is called here right?)
Keep good work
That was a typo. It is meant to be [1, 3]. Thank you for pointing that out.
Seems that your array is not the good one.
Yes they do - thanks!
Just wondering - since you are exposing source code in your 3 Kata descriptions, and you've changed the implemetnation, do those Kata descriptons also need updating?
Loading more items...