All challenges
Code AnalysisHard 50s

Trace: Slice Append Aliasing

What does this print?
Starter code
a := []int{1,2,3}
b := a[:2]
b = append(b, 99)
fmt.Println(a)

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