I hereby claim:
- I am hiwaldo89 on github.
- I am oswaldozarate (https://keybase.io/oswaldozarate) on keybase.
- I have a public key ASBJoLqn4k_UAJBo5qb6dHpDFP3TzIUtYa8uLk5oLMj1Dgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
const characters = [ | |
{ | |
char: "h", | |
position: [0] | |
}, | |
{ | |
char: "e", | |
position: [1] | |
}, | |
{ |
function isFactorial(n) { | |
let x = 0; | |
let counter = 0; | |
while (x <= n) { | |
x = getFactorial(counter); | |
if (x === n ) { | |
return true; | |
} | |
counter++; | |
} |
const nPalindromes = function(n) { | |
let sum = 0; | |
for (i; i < 10; i++) { | |
const palindromeNum = i.toString().repeat(n); | |
sum = sum + Number(palindromeNum); | |
} | |
return sum; | |
} |