Skip to content
bradendubois edited this page Jul 18, 2021 · 7 revisions

Un-bear-able Zoo

ID: zoo

Difficulty: 2.0

CPU Time: 1 second

Memory: 1024 MB

Solution

For each case, create a map that tracks an animal and the number of them seen. For each line, turn the last word into lowercase and increase the value that word maps too. Then, go through the keys of this map and output the animal:count pairs.

Clone this wiki locally