Skip to content

3898-find-the-degree-of-each-vertex

DevGod
DevGod
Elf Vtuber
/**
* @param {number[][]} matrix
* @return {number[]}
*/
var findDegrees = function(matrix) {
let ans = [];
for(let row of matrix){
ans.push(_.sumBy(row));
}
return ans;
};