conventions.io

Tech Challenge

2026-10-24

🦫

Daily Tech Challenge

Go

medium
Question 1 of 5

What does this Go program print on Go 1.23 or later, given what slices.Repeat returns?

Example
package main

import (
	"fmt"
	"slices"
)

func main() {
	s := slices.Repeat([]int{1, 2}, 3)
	fmt.Println(len(s), s)
}

Saturday, October 24, 2026 · A new challenge drops every day