행렬의 덧셈

2020.07.28

const solution = (arr1, arr2) => {
  return arr1.map((row, indexOfRow) => {
    return row.map((col, indexOfCol) => {
      return col + arr2[indexOfRow][indexOfCol];
    });
  });
};

0개의 댓글