Ad
  • Custom User Avatar

    return the one that's comprised by cards with the least sum of indexes

    No.

    Return the first comparing first, then second indices ( third index follows from first and second, so that's not useful to compare ).

    Is this called "lexicographically first" ?

  • Custom User Avatar

    "Turn math function into a program" is a bad kata idea. Moreover, calculating a vector product is not new either.