We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I understand the subtraction operator returns the positive count of items, so if ransom does fit in magazine, then it would return an empty Counter, but can someone explain to me how applying the not operator infrom converts this into a boolean value?
Hash Tables: Ransom Note
You are viewing a single comment's thread. Return to all comments →
Why does this work?
I understand the subtraction operator returns the positive count of items, so if ransom does fit in magazine, then it would return an empty Counter, but can someone explain to me how applying the not operator infrom converts this into a boolean value?