Allocating capacity for 151 Pokémon!

Report a typo

Suppose you want to create the kantoPokemon map that has string types as keys and int types as values. Since the total amount of Pokémon in the Kanto region is 151, you should estimate the initial capacity of 151 to the map.

Can you write a code line below that declares and initializes via the make function the kantoPokemon map, and also passes 151 as the hint argument to estimate the map's initial capacity?

Tip: As a hint, the format of the answer should follow this syntax:

kantoPokemon := ?

In the place of the ? sign you should call the make function to declare and initialize the map, and also pass 151 as the hint argument.

Enter a short text
___

Create a free account to access the full topic