All challenges
Multiple ChoiceIntermediate 30s

Go: Channel Buffer

ch := make(chan int, 5) creates:
Options
  1. 1An unbuffered channel, no capacity
  2. 2A buffered channel (capacity 5)
  3. 3A slice, preallocated with length five
  4. 4A map, preallocated for five keys

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle