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.
Thanks corrected
This comment is hidden because it contains spoiler information about the solution
You definitely went wrong with not using code blocks when posting code :D
Please see https://docs.codewars.com/references/markdown#code-block
This comment is hidden because it contains spoiler information about the solution
You're modifying your inputs, and you deserve everything you get.
Please learn to properly markup your posts.
This comment is hidden because it contains spoiler information about the solution
Upper limit of your loop can be greatly reduced. There's no need to loop all the way up to
num
.Not a kata issue, read the description again:
Yes, you need to optimize your code.
Thanks, I understood my mistake
Your code fails for 143.
Your code is wrong, not a kata issue. Read this: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution
This comment is hidden because it contains spoiler information about the solution