Solución
solution.tsTypeScript
export function digitsInFactorial(n: number): number {
// Escribe tu solución aquí
if(n === 0 || n === 1) return 1;
let product = BigInt(1);
for(let i = 1; i<=n; i++){
product = BigInt(product) * BigInt(i)
}
return product.toString().length;
}0respuestas