func readFileAsIntSlice() (sort.IntSlice, error) {
	lines, err := readFileAsStrings()
	if err != nil {
		return nil, err
	}
	input := make(sort.IntSlice, len(lines))
	for i, l := range lines {
		num, err := strconv.Atoi(l)
		if err != nil {
			return nil, err
		}
		input[i] = num
	}
	return input, nil
}
// Read input file as an IntSlice for easy sorting later
Read input file as an IntSlice for easy sorting later
// Read input file as an IntSlice for easy sorting later
func readFileAsIntSlice() (sort.IntSlice, error) {
	lines, err := readFileAsStrings()
	if err != nil {
		return nil, err
	}
	input := make(sort.IntSlice, len(lines))
	for i, l := range lines {
		num, err := strconv.Atoi(l)
		if err != nil {
			return nil, err
		}
		input[i] = num
	}
	return input, nil
}
func readFileAsIntSlice ( ) ( sort . IntSlice , error ) { lines , err := readFileAsStrings ( ) if err != nil { return nil , err } input := make ( sort . IntSlice , len ( lines ) ) for i , l := range lines { num , err := strconv . Atoi ( l ) if err != nil { return nil , err } input [ i ] = num } return input , nil }
Read input file as an IntSlice for easy sorting later
Read input file as an IntSlice for easy sorting later