Ad
  • Custom User Avatar

    Ruby 3.0 should be enabled.

  • Custom User Avatar

    Pretty sure this is a duplicate.

  • Default User Avatar

    Again, unpublish temporarly your kata before it gets more and more downvotes and republish after update.

  • Default User Avatar

    Hi,

    Your kata is lacking several things or has problems:

    • function name shouldn't be dir because it's a function in python (dir(list))
    • maybe an argument name a bit more explicit...? (not really a problem)
    • the return type as a list is really not a good idea because the order is important. You should either ask for a dictionary or specify the order in which the directions should be appended to the list
    • what about several "residual" directions? (see above)
    • not enough tests
    • need random tests

    cheers