#17

Ransom Note

Easy
All Problems

17. Ransom Note#383

Easy📊 Arrays & HashingFrequency Count

Determine if a ransom note can be constructed from the letters of a magazine.

Examples

Example 1:
Input: ["a","b"]
Output: false
Example 2:
Input: ["aa","ab"]
Output: false
Example 3:
Input: ["aa","aab"]
Output: true

Why learn this

Reinforces frequency counting from a different angle — one-directional character matching.

StringsHash MapsFrequency Counting
Python 3Loading Python engine...
Click "Run Code" to test your solution