Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    A good coder is forced to be a minimum good at maths.

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    Sorry but five minutes with pen and paper are sufficient to see what happens... There is no trick! Moreover there is no "waste of time" when you make your brain work:-)

  • Default User Avatar

    Yes I agree, I actually hate these sorts of katas where there's some sort of discovery required i.e. you happen to figure out what the trick is. If you don't, you can spend days wasting your time.

    It's not a coding kata, it's a "Find the magical trick" kata.

  • Default User Avatar

    It is sufficient to calculate 1 / n by hand to see what happens.