Written by
java-style
on
on
[JAVA] 프로그래머스 내적
[JAVA] 프로그래머스 내적
728x90
알고리즘
JAVA 프로그래머스 내적
1. 문제
https://programmers.co.kr/learn/courses/30/lessons/70128
2. 풀이
a에 i번째, b에 i번째 수끼리 곱한다음 for문으로 더해준다
class Solution { public int solution(int[] a, int[] b) { int answer = 0; for(int i=0; i
728x90
from http://yuricoding.tistory.com/41 by ccl(A) rewrite - 2021-11-08 21:02:15