You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Count characters in chars and store them in a hashmap
for ch in chars.chars() {
let counter = map.entry(ch).or_insert(0);
*counter += 1;
}
// Create copy of above calculated hashmap, then reduce the characters from that hashmap as per the letters in the word for each word. If we ever reach 0, the word cannot be made using those characters