(프로그래머스) 행렬의 덧셈

유지원·2022년 5월 15일
0

프로그래머스

목록 보기
51/66

문제 링크

https://programmers.co.kr/learn/courses/30/lessons/12950?language=javascript


Javascript

function solution(arr1, arr2) {
  return arr1.map((a,i) => a.map((b, j) => b + arr2[i][j]))
}
profile
👋 https://github.com/ujw0712

0개의 댓글