Ad
  • Custom User Avatar

    genuinely, how is this more efficient than some of the others?

    To me it looks less readable which, and efficient code can tends to be less readable, but that doesn't apply the other way round.

    is it the modulo operations being more efficient than the 'even?' method, for example?

  • Custom User Avatar

    very clever. thanks for explaining! I just realised why I was slightly confused and that's because I misunderstood the kata in the 1st place. still managed to pass the case tests though haha

  • Custom User Avatar

    can someone explain this please?