Hash Tables: Ransom Note

  • + 1 comment

    What would you consider to be the "right" method? I appreciate your comment, but "Trust me" isn't a helpful explanation.

    A reverse slice is much faster than a string .join(), for example. In terms of interviews, it's much better to show you know Python by using built-ins and the standard library. If they want it done "from scratch" they will tell you. In my opinion, a reverse slice is thus the "right" method.