Go: check start and finish only
go\nfunc mostVisited(n int, rounds []int) []int {\n\tvar (\n\t\tstart  = rounds[0]\n\t\tfinish = rounds[len(rounds)-1]\n\t\tres    []int\n\t)\n\tif start <= fin
```go\nfunc mostVisited(n int, rounds []int) []int {\n\tvar (\n\t\tstart  = rounds[0]\n\t\tfinish = rounds[len(rounds)-1]\n\t\tres    []int\n\t)\n\tif start <= finish {\n\t\tres = make([]int, 0, finish-start+1)\n\t\tfor i := start; i <= finish; i++ {\n\t\t\tres = append(res, i)\n\t\t}\n\t} else {\n\t\tres = make([]int, 0, n-start+finish+1)\n\t\tfor i := 1; i <= finish; i++ {\n\t\t\tres = append(res, i)\n\t\t}\n\t\tfor i := start; i <= n; i++ {\n\t\t\tres = append(res, i)\n\t\t}\n\t}\n\treturn res\n}\n```
['Go']