Ad
  • Custom User Avatar

    But in O notation it will be 3x vs x² i think this is still better than having nested maps or foreach.

  • Custom User Avatar

    This kata definition should add an additional restriction for not using built-in language functions ? for example for php there is a array_diff function. Idk if this restriction is more oriented to the spirit of the kata.

  • Custom User Avatar

    Technicaly, the requirement didnt say EXPLICITLY that we could not use built-in function so there is a gray area. So despite this aproach is not "handmade from scracth" is also valid acording the kata definition.