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.
Your solution has a very, very serious performance problem. Testing a single value of
2_000_000_000
makes it time out. Yourfor
loop needs fixing, because the way it is now, it works terribly slowly.I would consider a solution which loops a billion times buggy, and not a kata issue.
Why is this a kata issue? Maybe your solution is too slow or falls into some infinite loop?
execution always times out, please help!
(objective-C).
For the test: 5 6 3 1 2 4 5 2 2 9 5 7 8 1 8 4 8 5 9 4 6 8 6 3 2 8 2 5 2 5 1 2 5 9 5 1 8 9 4 9 4 1 2 1 4 7 1 1 5 4 1 6 3 6 7 8 2 5 9 7 5 3 7 1 5 4 4 4 1 2 5 8 8 9 5 8 7 8 2 5 4
Expected: equal to 1245789
I get 123456789, why it is not correct?
You must be kidding me with this description lol
Good one, these sorting problems are always fun!!
very nice kata
i mean, you should just add the case of (a+b+c), and it will work, i guess the creator of this kata have just forgot to mention it
Huh... You're right, the description is duplicated!
Seems like the description was messed up two years ago, some time between this Rust and this CoffeeScript translation
i mean duplication in description
Can you advise this kata is similar to which other kata(s), for our reference?
The description is awful and have duplicates
fun kata
If you post code, please use a code block. A code block is started and ended with ````.
Your solution fails for numbers such as
12321
. You can useconsole.log
to display the input or your variables to figure out what goes wrong.Can you check my kata?
Loading more items...