You are viewing a single comment's thread. Return to all comments →
Solution in Python without using Counter or auxiliary Dictionaries:
def checkMagazine(magazine, note): for i in note: try: del magazine[magazine.index(i)] except ValueError: print('No') return print('Yes') return
Seems like cookies are disabled on this browser, please enable them to open this website
Hash Tables: Ransom Note
You are viewing a single comment's thread. Return to all comments →
Solution in Python without using Counter or auxiliary Dictionaries: