Ad
  • Custom User Avatar

    lol, yeah the only error I was getting was that I couldn't make the % operation between an int and a double so I just switched the double with int and it started working, but giving the opposite reult. Thx for the response!

  • Custom User Avatar

    You changed the function to take an int instead of a double, and it ended up really screwing up the tests. You're supposed to return true if n is even, but your code really broke this kata.

  • Custom User Avatar

    I was able to do it, but I am very confused. Am I returning True if the number is odd and False if the number is even?? Because from the Kata name I thought it would be the opposite, and now I'm contemplating if I ever understood C at all.

  • Custom User Avatar

    Gotcha! Thank you.

  • Custom User Avatar

    Oh, and footnote 8 claims the Swiss are particularly fond of watchmaking, bit twiddling, the Basic Latin Unicode block, and Gruyère cheese. Weird mix. I don't know if any of that is true though.

  • Custom User Avatar

    How does this work for the case where all three languages are different?