문제
https://programmers.co.kr/learn/courses/30/lessons/70128
접근
내적
코드
python
def solution(a, b):
result = 0
for i in range(0, len(a)) :
result += a[i]*b[i]
return result
js
function solution(a, b) {
const len = a.length;
let result = 0;
for(var i=0; i<len; i++) {
result += a[i]*b[i]
}
return result;
}