Skip to main content
Commonmark migration
Source Link

Mathematica, 48 47 46 bytes

-1 byte thanks to Martin Ender!

StringLength[""<>ToString/@Range[0,#,Sign@#]]&

Anonymous function, taking the number as an argument.

###Shorter solution by Greg Martin, 39 bytes

Shorter solution by Greg Martin, 39 bytes

1-#~Min~0+Tr@IntegerLength@Range@Abs@#&

Mathematica, 48 47 46 bytes

-1 byte thanks to Martin Ender!

StringLength[""<>ToString/@Range[0,#,Sign@#]]&

Anonymous function, taking the number as an argument.

###Shorter solution by Greg Martin, 39 bytes

1-#~Min~0+Tr@IntegerLength@Range@Abs@#&

Mathematica, 48 47 46 bytes

-1 byte thanks to Martin Ender!

StringLength[""<>ToString/@Range[0,#,Sign@#]]&

Anonymous function, taking the number as an argument.

Shorter solution by Greg Martin, 39 bytes

1-#~Min~0+Tr@IntegerLength@Range@Abs@#&
added 145 characters in body
Source Link

Mathematica, 48 47 46 bytes

-1 bytesbyte thanks to @MartinEnderMartin Ender!

StringLength[""<>ToString/@Range[0,#,Sign@#]]&

Anonymous function, taking the number as an argument.

###Shorter solution by @GregMartinGreg Martin, 39 bytes

1-#~Min~0+Tr@IntegerLength@Range@Abs@#&

Mathematica, 48 47 46 bytes

-1 bytes thanks to @MartinEnder!

StringLength[""<>ToString/@Range[0,#,Sign@#]]&

Anonymous function, taking the number as an argument.

###Shorter solution by @GregMartin, 39 bytes

1-#~Min~0+Tr@IntegerLength@Range@Abs@#&

Mathematica, 48 47 46 bytes

-1 byte thanks to Martin Ender!

StringLength[""<>ToString/@Range[0,#,Sign@#]]&

Anonymous function, taking the number as an argument.

###Shorter solution by Greg Martin, 39 bytes

1-#~Min~0+Tr@IntegerLength@Range@Abs@#&
Included Greg's solution
Source Link

Mathematica, 48 47 46 bytes

-1 bytes thanks to @MartinEnder!

StringLength[""<>ToString/@Range[0,#,Sign@#]]&

Anonymous function, taking the number as an argument.

###Shorter solution by @GregMartin, 39 bytes

1-#~Min~0+Tr@IntegerLength@Range@Abs@#&

Mathematica, 48 47 46 bytes

-1 bytes thanks to @MartinEnder!

StringLength[""<>ToString/@Range[0,#,Sign@#]]&

Anonymous function, taking the number as an argument.

Mathematica, 48 47 46 bytes

-1 bytes thanks to @MartinEnder!

StringLength[""<>ToString/@Range[0,#,Sign@#]]&

Anonymous function, taking the number as an argument.

###Shorter solution by @GregMartin, 39 bytes

1-#~Min~0+Tr@IntegerLength@Range@Abs@#&
added 45 characters in body
Source Link
Loading
added 34 characters in body
Source Link
Loading
Source Link
Loading