Ad
  • Custom User Avatar
    1. This is not new
    2. You've got to be kidding

    "Give a new name to a native function" is not a good idea for a kata.

  • Custom User Avatar

    Ah, I see.

  • Custom User Avatar

    Nope, it mean that you sort the list by the numbers, and if there are any ties, then sort by the name in lexicographical order.

  • Custom User Avatar

    Doesn't "The return of the function shall first be sorted by yymm, then by the name (which varies in length)." mean that you sort the list by the numbers, and if there are any ties, then sort by the length of the name?

  • Custom User Avatar

    web-1304 has the same number as site-1304 but web is a shorter word so it goes first?

    Who said you should use length for comparison?

  • Custom User Avatar

    In one of the tests, the input is ['aeb-1305', 'site-1305', 'play-1215', 'web-1304', 'site-1304', 'beb-1305'] and the expected output is ["play-1215", "site-1304", "web-1304", "aeb-1305", "beb-1305", "site-1305"]. Correct me if I'm mistaken, but shouldn't the output be ["play-1215", "web-1304", "site-1304", "aeb-1305", "beb-1305", "site-1305"] since web-1304 has the same number as site-1304 but web is a shorter word so it goes first? The error message is ['play-1215', 'web-1304', 'site-1304', 'aeb-1305', 'beb-1305', 'site-1305'] should equal ['play-1215', 'site-1304', 'web-1304', 'aeb-1305', 'beb-1305', 'site-1305']. (Python)