Ad
  • Custom User Avatar
  • Custom User Avatar

    Sample tests are broken: a end is missing.

  • Custom User Avatar

    The second example of your description shows that positiv angles have to be rotated to the left (=> neg. to the right - a point for your description?!). So the example for 45 degree looks a little bit strange to me (even for a rotation to the right - "swapped values?"):

    [[1, 2, 3, 4],
     [5, 6, 7, 8],
     [9, 10, 11, 12]]
    

    normally should be

    [[4],
     [3,8],
     [2,7,12],
     [1,6,11],
     [5,10],
     [9]]
    

    Or where i'm wrong? (i know what you are doing here - but is it really a rotation?)

  • Custom User Avatar

    Interesting kata, but I have a few comments/questions:

    • Argument a is apparently meaningless in the counting operation.
    • The description refers to infinite possible operations, but only defines operations 0 through 3. What would operations 4+ be?
    • The example test has the wrong expected value for 5 to the 13th power.