Skip to content

Latest commit

 

History

History

numberOfDecimalDigits

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Number of Decimal Digits

7 kyu link to kata
my solution

Determine the total number of digits in the integer (n>=0) given as input to the function. For example, 9 is a single digit, 66 has 2 digits and 128685 has 6 digits. Be careful to avoid overflows/underflows.

All inputs will be valid.