Question

Write a function to add given two matrices?

Login to Submit

Examples

The matrix

[1   1]
[1   1]

is written in javascript as [[1, 1], [1, 1]]

Input: [[1, 1], [1, 1]]  [[1, 1], [1, 1]]
Output: [[2, 2], [2, 2]]