Ad
  • Custom User Avatar

    IMHO in C++ your map type msv could be better. If at one point you have to sort the keys with comparing the 'int' corresponding value (see the solution, 80% of them begin with that), then you would declare this comparator IN THE msv type !

  • Custom User Avatar

    In general (and also in this kata), even when input arguments are copies of objects to verify against, should input arguments be immutable?
    For instance, in Java, we are allowed to mutate the Map<Integer, List> we are given.