Hash Tables: Ransom Note

  • + 2 comments

    Precisely.

    As a python developer, I am too often tempted to go for the short-cuts that it provides, but I've also learnt my lesson the hard way that: 1. Most of your interviewers would want to see your step by step approach to test if you can really code. 2. It's hard to scale when you don't know/care what is working behind the scene.

    PS. If you are ever asked to reverse a string, please try not to do string[::-1]. Do it right. Trust me.