problems
Version:
A set of problems that can be encountered in interviews.
19 lines (15 loc) • 352 B
JavaScript
var _ = require('lodash');
/**
* Expects matrice to be an N by N matrix.
* @param {Array} mat
*/
function rotate(mat) {
}
/**
* A matrix is with any element as 0 needs to have all the elements in the
* row with 0 in it set to zero and same with column.
* @param {Array} mat
* @return {Array} the new matrix
*/
function zeroMatrix(mat) {
}