Ransom note | Leetcode

Опубликовано: 03 Май 2020
на канале: Techdose
26,462
364

This video explains a very interesting string problem which is to find whether it is possible to form a ransom note using the characters of the string present in magazine. Characters are not reusable from magazine. I have explained this problem using hash which keeps count of frequency of characters in magazine and then try to form the ransom note using this frequency hash. If it is possible to form a string then we return true otherwise return false. I have explained this problem with proper example and intuition of how to solve it. I have also explained the CODE at the end of the video and have provided the CODE LINK below. This problem is based entirely on counting characters using an array or hashmap. If you find any difficulty or have any query then do COMMENT below. PLEASE help our channel by SUBSCRIBING and LIKE our video if you found it helpful...CYA :)


CODE LINK: https://gist.github.com/SuryaPratapK/...


На этой странице сайта вы можете посмотреть видео онлайн Ransom note | Leetcode длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Techdose 03 Май 2020, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 26,462 раз и оно понравилось 364 зрителям. Приятного просмотра!