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 I am also trying URL and getting the error. It should be mentioned that you can't use URL.
what they want is the position in the array not the value.
ex:
In this case the number
5
is the odd number and it is in the third(3) position.Thanks for the help! I will try this :) Yes the image was pretty clear. Great.
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
Thanks for this suggestion. I'll try to learn about this new and useful tool for maths.
This comment is hidden because it contains spoiler information about the solution
Description could be updated to use katex, as it would replace current links, which extend beyond images and are very easy to click unwillingly.
Julia translation
Please mark your post as having spoiler content next time. And don't use global vars like that. That's mentioned here: 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?
Please read the post below yours. Also read this: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution
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🔧🔨