Last active
December 6, 2016 13:49
-
-
Save johnbahamon/0410d72b928dc23b493676def01d1185 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sumMatrix(matrix: number[][]) { | |
var sum = 0; | |
for (var i = 0; i < matrix.length; i++) { | |
var currentRow = matrix[i]; | |
for (var i = 0; i < currentRow.length; i++) { | |
sum += currentRow[i]; | |
} | |
} | |
return sum; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment