update day2
rewrite all functions to methods
This commit is contained in:
parent
3fbc954566
commit
39f1e7ae74
2 changed files with 59 additions and 60 deletions
|
@ -38,7 +38,7 @@ func ReadLinesTwoIntSlices() (list_a []int, list_b []int) {
|
|||
return list_a, list_b
|
||||
}
|
||||
|
||||
func ReadLinesToIntArrays() (lines [][]int) {
|
||||
func ReadLinesToIntSlices() (lines [][]int) {
|
||||
scanner := GetLines()
|
||||
for scanner.Scan() {
|
||||
string_line := strings.Fields(scanner.Text())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue