Solución
solution.tsTypeScript
export function secondsToTime(seconds: number): string {
// Escribe tu solución aquí
let base = 3600;
let str = [];
while (base >= 1) {
let n = Math.floor(seconds / base);
str.push(n.toString().padStart(2, "0"));
seconds -= (base * n);
base /= 60;
}
return str.join(':');
}0respuestas