Top Algorithm Interview Questions Fully Explained; Ransom Notes using hashmaps

Publié le: 17 juillet 2024
sur la chaîne: Jadi
605
20

We have a magazine and a RansomNote draft and we want to know if we can create that RansomNote using the letters we have in the magazine. This can be solved in many ways. I'll do a standard hashmap solution first and later will show a solution which beats 95% of other peoples solutions; speed wise.

00:00 - Ransom Note using hashmaps interview questions
00:50 - Why hash maps
03:26 - Understanding the question and proposing the answer
06:33 - writing the solution
09:43 - Proposing a faster solution using `set` and `count`


Sur cette page du site, vous pouvez voir la vidéo en ligne Top Algorithm Interview Questions Fully Explained; Ransom Notes using hashmaps durée online en bonne qualité , qui a été Téléchargé par l'utilisateur Jadi 17 juillet 2024, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 605 fois et il a aimé 20 téléspectateurs. Bon visionnage!