Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
.
The negative part is ignored and the number '4' has been declared. Since it says to count from right to left, we had to add a zero on the left side to accommodate for the nth value. So -456 become 0456. Therefore, 0 is the correct answer for the 4th position.
Change to:
In Rust
nth
is declared asusize
but negative numbers are passed.Why findDigit(-456, 4) value is return 0?
Can any one tell me,
This algoritham is write if I don't any predefine function of javascript?
digital_root(sumAll)
toreturn digital_root(sumAll)
console.log(sumAll)
toreturn sumAll
.charAt(i)
to[i]
for (var i = 0; i < strNumber.length; i++)
This comment is hidden because it contains spoiler information about the solution