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.
Agreed - this is infuriating! It's what initially caused me to bail on this site a couple years ago.
Sad to see that two years later the devs have still not addressed these problems.
I agree with Happyguy, this whole thing could be avoided to have one example like this: foo123bar001
this is adequate information without giving away too much imo
do you atleast understand where or how to incooperate the secret as a variable? I really think it should be added to the function as a parameter.
The description is a little vague and there is plenty of feedback below on the difficulty in understanding the problem being asked. I also had spent a lot of time trying to understand the question rather than figuring out the best logic for it. I suggest adding the sentence below to the description:
"Consider each triplet as a set of rules for how each letter needs to be ordered in the secret string"
Respectfully, I disagree. I solved this kata, albeit poorly and inefficiently.
You are already reducing my suggested description back down to the vague original one which is my original issue. I think you're missing my point as you're an experienced coder or developer and see the forest for the trees while I'm a beginner looking at every single tree and stumbling along the way. If the spirit of kata is to help people learn coding, my suggestions will help beginners learn more quickly with a simple revision. If the spirit is to provide any kind of arbitrary coding challenge, then sure, having hidden tests and finding the true solution in an obfuscated problem is an interesting challenge. But I'm not interested in the latter and I think if you read some of the other feedback you'll see others agree. I didn't expect such pushback for adding a single addex example to the kata.
It leaves me really doubtful.
Which is exactly what the description says: If the string already ends with a number, the number should be incremented by 1....
All the rest you say sounds like an overinterpretation of the description (why move all numbers to the end or take into account anything that's not a number? What does in the description let you think you should do that?). I think people struggling with it just don't take the time to read carefully and figure out what the task is. It's not a problem, it happened to me probably hundreds of times, misreading the description and losing a lot of time on a kata because of that. But I'm the culprit and spitting on the kata afterward is not really fair...
If you are a beginner maybe you should solve a good amount of easier katas before, it may help you to get used to be attentive to details in the descriptions.
First I thought I had to take all the numbers together, then add one, then put the all numbers at the end. E.g. '1foobar99' I thought would be '2foobar00' or 'foobar200' because there was no example with numbers not at the end, I was just guessing.
Then I thought I may have to take into account anything that's not a number because I forgot spaces and special characters don't fall under isalpha() and move them around. This burned at least an hour. The comments helped me understand the numbers in between strings do not get "incremented," only the numbers at the end. It's a good problem once I understood it as it was helpful to learn more about formatting, but I spent probably over an hour trying to solve for the wrong solution.
I think for those who have been looking at code for a long time, it's easy to forget how we beginners interpret everything with both a literal and imaginative eye as we don't have a full box of tools so we don't know what's missing from our box.
I would appreciate you answer to this question: What did you think you had to do in this case before doing the tests?
It's vague and a poor way to explain what's desired. The whole input is a string so you can't just say if the string ends in a string, that's not clear and asks the viewer to guess what it means. The author really means after the last letter or
.isalpha() = True
THEN the digits after and at the end should be put together and considered a number. The examples provided do a good job of explaining the context the number should be to answer the kata once what I just metioned is already known. The difficulty of the problem is figuring out what it actually is asking. I hope this helps somebody else learning to not waste time with the semantics of a question and keep moving towards their goals.What did you think you had to do in this case before doing the tests?
I think the description is clear enough, and still more with the provided examples:
I'm going to leave it as a non-spoiler because I think it should have been included. This example would have saved me a ton of time in answering the actual question rather than answering what I think the author implied.
'2!.490foo4bar0281701'-> '2!.490foo4bar0281702'
Many thanks
Hi. The log must be read this way:
*Your answer* should equal *Correct answer*
. You will find more helpful informations there: https://docs.codewars.com/training/troubleshooting/Hi, my code passes the test task, but does not pass the main check. I don't understand how to read these errors in random tests, what should correspond to what here?
"60120488LvL5544'i=479575hY7c69841190185922K8; 5105900000000020855262610"
should equal
"60120488LvL5544'i=479575hY7c69841190185922K8; 510590000000002085526270"
If we take it in its pure form, then the condition for kata is incorrect.
Loading more items...