반응형
2022.07.29 - [Coding Test/Python] - [프로그래머스] 내적 Python Code
2022.07.29 - [Coding Test/C++] - [프로그래머스] 내적 C++ Code
이번엔 Go로 풀어보겠다.
문제
Code
func solution(a []int, b []int) (answer int) {
for i := range a {
answer += a[i] * b[i]
}
return
}
반응형
'Coding Test > Go' 카테고리의 다른 글
[프로그래머스] 체육복 Go Code (0) | 2022.08.10 |
---|---|
[프로그래머스] 없는 숫자 더하기 Go Code (0) | 2022.08.08 |
[프로그래머스] 소수 만들기 Go Code (0) | 2022.08.04 |
[프로그래머스] 음양 더하기 Go code (0) | 2022.07.29 |
[프로그래머스] 신고 결과 받기 Go Code (0) | 2022.07.18 |
댓글