코딩테스트/프로그래머스
프로그래머스lv1 - 내적
sunNprize
2022. 1. 9. 15:54
https://programmers.co.kr/learn/courses/30/lessons/70128
class Solution {
public int solution(int[] a, int[] b) {
int answer = 0;
for (int i = 0; i < a.length; i++) {
answer += (a[i] * b[i]); }
return answer;
}
}
너무쉬움