[알고리즘] 프로그래머스 : 내적

로빈·2022년 6월 15일
0

Algorithm, Data Structure

목록 보기
11/12

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

import Foundation

func solution(_ a:[Int], _ b:[Int]) -> Int {
    return zip(a, b).map { $0.0 * $0.1 }.reduce(0, +)
}
profile
IOS 앱개발 공부중

0개의 댓글