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.
Note: encoding can be done with
This is the third time I've seen this kata in the past few days. Just so you're aware, the reason why it keeps getting retired is because it's receiving too many negative votes. This could be for a number of reasons, such as it lacks novelty, it's a duplicate, it has too many issues, it lacks random tests, the quality is poor, etc. Try not to take it personally, but this is almost guaranteed to be retired again. I suggest coming up with a different idea for a kata. For reference, all of the kata I've created, except for one have made it beyond beta. Some people are just better at creating katas than others.
explanation:
Calls printf c function
Sorry, I don't really follow--in the other kata, more than one pair can be the solution. In yours, the return value requires slightly more specific bookkeeping, but that's immaterial to the main algorithm--summing the indices is a superficial difference.
The issue from previous one has not been fixed.
https://www.codewars.com/kata/reviews/64dab061466bf40001b5ce79/groups/64dac2083060670001f53e3e
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 was marked as resolved, but the name is still
camelCase
.Actually, the adjustments throughout the thread appear to only have been applied to submission tests, not sample tests, which still use 6969 as a flag for "not found".
Returning -1 isn't great, either, since there's no reason the algorithm shouldn't work on negative numbers. Better to raise or return None.
Sorry I have fixed the issue
Sometimes this happen in the random tests:
Alright I have changed it to -1, thanks for your time and help.
What don't you know? Pick two random numbers in the array?
Unfortunately I don't know how to do that and have some -6969's at the same time, this works better for me.
It actually does because katas are supposed to follow good practices of their languages. -6969 doesn't make sense.
Also it doesn't matter, it can be any negative number
Loading more items...