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
Can someone explain what is happening inside "if" statement? after for loop?
Thanks
What if the string contains digits? I'm not seeing where your code handles digits, only letters.
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.
ahahaha that is thinking outside the box..
superb
Same for me :-(
All the tests are working but too slow to be submitted...
Please retry solution is not correct
Leave it to a Java programmer to use a weird data structure
-Java programmer
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
Loading more items...