All challenges
Multiple ChoiceIntermediate 30s

strings.Builder

strings.Builder is preferred over += in loops because it:
Options
  1. 1Handles Unicode efficiently
  2. 2Is thread-safe for writes
  3. 3Avoids repeated allocations
  4. 4Compiles to smaller code

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