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.
Actually, I think that the image explain more than the example🤣🤣🤦🏽♂️
Hello there, yep, I did a code similar to yours, and I got the same results, I thought that I was right but in reality I didn't understand what the kata was asking for.
Here's a screenshot of both examples.
https://lh3.googleusercontent.com/pw/ACtC-3ctdthT9WTq7pcMe2LwcIeXdI1j3RoMyETVwqd4tXiCrGw62_wk8Tcds7MNYBFLFtuUi7DfPvIVbSuYoz4PJ5-To3eKKVtyXMxVRk0t2xKG_CFowZKtJWywiBNKqlcP8v3b-f196HvmTxThd8w2hmtj=w1264-h647-no?authuser=0
Use your calculator, and verify. Hope I helped you.
Read this, and also, If you're posting code like that, mark it as spoiler.
https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Ohh, of course, I get it now, what is asking for is not the number itself, it's asking for its position.🤦🏽♂️ How can I be that stupid.
Can't I just delete this post?
This Kata is wrong, at the first value is expected to be "3", but that's cannot be possible
if the value isn't in the array.
Second, the values your asking in the following strings are not the values it supposed to🤷🏽♂️,
try to split the string, and the console.log it, and you will see that it can be asking for an even
number, but the value that differs is an odd one🤦🏽♂️🤦🏽♂️.
Here's an image.
https://lh3.googleusercontent.com/pw/ACtC-3fFPveScuAkiqlAwoFHJTGDlhJEkCkevLFFf3kwhKsEvduygZ1OOCAfrUTAr8VWG5FF-Y5cnpF7MW7JTF5wAnlM2bzAKUfbtxBZrFG6cYSka7LNiRHh6KwL8bbeK7uVDWvWkpXtSzQrdDRB7QTBjP83=w557-h460-no?authuser=0
Please fix🔧🔨