Question 383: Ransom Note
Link
Solution
- Store each characters with their counts in a dictionary for Magazine String
- Loop through each character in ransomNote. Check the availability of the character in the magazine dictionary
- If not then return False, otherwise return True
Code