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.
The instructions say: "You are given an array containing all integers from 1 to N, except one that is missing."
In this exemple, N=6 (it is the size of the input array) so the missing number is indeed 6.
Considering that the purpose of this kata was to expose some weird JavaScript parsing behavior, I am not sure it makes much sense to propose translations in other languages.
Thanks for pointing that out, the text is fixed.
There is no test with the inputs that you mentioned.
If I input your data to the kata's solution, it does return false anyway.
Hi,
Test cases can no longer be edited on this kata to include your comments.
Perhaps an administrator can do it, but I cannot.
Here is one:
The conversion should only be done when there is a single value.
And spaces can only be ignored at both ends.
From the kata's description: "Each candidate can roll the wheel once or twice and sum up the score of each roll."
So it is perfectly valid for Jennifer to have only one score.
I cannot see your solution so it is hard to help you.
Can't you print the string at the beginning of your solution?
Traces should also appear when submitting the code.
Hi. You can try your code with a "round" floating point number e.g.
12.0
: it should returnNaN
.Fixed for all languages, thanks!
A candidate can have one score under 100 (if he rolled the wheel only once).
I just add
print(candidates)
at the beginning of the function and it prints out the list of candidates.I guess a regular print will work for Python.
Loading more items...