hackathon/question/q03/part1.go

11 lines
135 B
Go

package q03
func solveP1(nums [][]int) (sum int) {
for _, row := range nums {
for _, n := range row {
sum += n
}
}
return
}