Leetcode 383 Ransom Note
The idea is pretty simple, we use a map to record the number appearance for each letter from the ransomNote. Then we go to magazine and see if each letter can be used in the ransomNote. Each time we see… Read More »Leetcode 383 Ransom Note