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.
How would not having a loop account for different input?
Kinda had to cop out on validation on this one... since it ending up ignoring my conditoional at the top of the function block and continued execution... but it does work
This isn't a kata issue, it's a problem with your code. In your pc, the input is a number, here it is an array of numbers. Please read this: https://docs.codewars.com/training/troubleshooting
This is doable without any kind of loop....
Took me a while
Don't allow yourself to feel inadequate at least not to the level of giving up. Keep trying. I started about 2 years ago and felt like coding was not for at times. Keep learning new things and more than all keep trying to solve coding challenges, you can start with relatively easy ones.
Aye but I found a way to condense mine a bit, nothing near the extent of those top solutions though.
This was nice.
This comment is hidden because it contains spoiler information about the solution
wow nearly 3 hours of work could have been reduced to a measely 1 minute. Atleast I know those methods exist now, I just hope I don't forget that they do before the time comes when I actually need to use them.
well this took hours... might have been done sooner if I used google rather than brain storm and trial and error... but I wanted to try only using my problem solving skills. Now to add comments.
the same error(((
So this is codewars. I know I just recently started learning programming and all but, man do I feel inadequate. At least I managed to get it right. funnily enough my soultion to my problem didn't come from the description...