Solución
solution.tsTypeScript
export function identityMatrix(n: number): number[][] {
// Escribe tu solución aquí
let matriz: number[][] = Array.from({length: n}, () => new Array(n).fill(0));
for(let i = 0; i < n; i++) matriz[i][i] = 1;
return matriz;
}0respuestas