Skip to content

Instantly share code, notes, and snippets.

View estuardolh's full-sized avatar
🚀
Imagination > Knowledge

estuardolh estuardolh

🚀
Imagination > Knowledge
  • Guatemala
View GitHub Profile
let entrada = [9];
let resolver = (entrada) =>{
let arrayNumero = [];
let strNumero = "";
let insertarUno = false;
entrada.map((valor, indice) => {
if(indice == entrada.length - 1){
strNumero = ( valor + 1 > 9) ? "1" + strNumero : strNumero;
strNumero += (valor + 1 > 9 ? 0 : valor + 1);