Ad
  • Custom User Avatar

    make test cases from the examples (JS version)

  • Custom User Avatar

    Thanks for your reply.
    Since speed is not mentioned in the kata description I did not care about execution time.
    It's a 7 kyu kata and it's "fast enough".
    This solution is KISS and easy on the eyes though.
    One could of course implement faster solutions with "fail fast".

  • Custom User Avatar

    the description should state "without moving the pizza pieces"
    otherwise one could double the number of pieces with each cut.
    then it is as simple as: two to the power of cuts