Ad
  • Custom User Avatar

    I had that problem using python. Cutting the last two digits of 10000 == 00 which through int("00") is 0. But you want 100 not 00. I just did a special case to catch that condition.

  • Custom User Avatar

    Why is the test expects n^0 being 1, whilst all other tests require n^0 being n?

    This does not sound right. AFAIK this kata expects n^0 to be 1, also for n=0.
    Maybe here you will find some hints how to search for error in your solution.

  • Custom User Avatar

    As of treating n ^ 0 resulting n while n is not 0 (so 0^0 resulting 0) I can pass all the tests, except one.
    Why is the test expects n^0 being 1, whilst all other tests require n^0 being n?
    I am quite curious if it is just my fault ... :(

    p.s. I like the quiz pretty much. don't get me wrong lolz

  • Custom User Avatar

    100%, however, still impressive how simple it could have been done if we were to guess the string would be so short haha