Example #1
0
func solver(in *ProblemReader.ProblemReader) string {
	words := in.Words()

	reversed := make([]string, len(words))
	for pos, word := range words {
		reversed[len(words)-pos-1] = word
	}
	return strings.Join(reversed, " ")
}
Example #2
0
func readTrip(in *ProblemReader.ProblemReader, src string, dst string) trip {
	sched := in.Words()
	return trip{src, dst, parseT(sched[0]), parseT(sched[1])}
}