Ad
  • Custom User Avatar

    I think there is a confusion between the value of the different rolls of the wheel and the total score (sum of the rolls).
    A score over 100 can occur, but a single roll of the wheel cannot exceed 100.

  • Custom User Avatar

    It is written in the description that numbers on the wheel are multiples of 5, ranging from 5 to 100.

  • Custom User Avatar

    The score for a single roll cannot exceed 100. Charlie's second roll (105) is not a valid input, hence it should return false.

  • Custom User Avatar

    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.

  • Custom User Avatar

    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.

  • Custom User Avatar

    Thanks for pointing that out, the text is fixed.

  • Custom User Avatar

    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.

  • Custom User Avatar

    Hi,
    Test cases can no longer be edited on this kata to include your comments.
    Perhaps an administrator can do it, but I cannot.

  • Custom User Avatar

    Here is one:

    function isEven(n) {
      return (n % 2 === 0);
    }
    
  • Custom User Avatar

    The conversion should only be done when there is a single value.

    And spaces can only be ignored at both ends.

  • Custom User Avatar

    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.

  • Custom User Avatar

    I cannot see your solution so it is hard to help you.

    • Which test is failing? What is the input and what is your output?
    • Which language are you using?
  • Custom User Avatar

    Can't you print the string at the beginning of your solution?
    Traces should also appear when submitting the code.

  • Custom User Avatar

    Hi. You can try your code with a "round" floating point number e.g. 12.0: it should return NaN.

  • Custom User Avatar

    Fixed for all languages, thanks!

  • Loading more items...