FAANG wait

Report a typo

Write a program that concatenates algorithms into one string, separated by ";".

Write a program in Go
package main

import (
"fmt"
"strings"
)

func main() {
algorithms := parseAlgorithms()
fmt.Println(?) // TODO: format algorithms
}

// DO NOT CHANGE
func parseAlgorithms() []string {
var algorithms []string
for {
var algo string
if _, err := fmt.Scan(&algo); err != nil {
break
}
algorithms = append(algorithms, algo)
}
return algorithms
}
___

Create a free account to access the full topic