230825 내적

Jongleee·2023년 8월 25일
0

TIL

목록 보기
347/576
public int solution(int[] a, int[] b) {
	return IntStream.range(0, a.length)
			.map(i -> a[i] * b[i])
			.sum();
}

출처:https://school.programmers.co.kr/learn/courses/30/lessons/70128

0개의 댓글