Intel Corporation Interview Question

Implement int.ToString(), i.e. implement a function that receives an integer and returns a string representing that integer, without using the built in ToString() of the language.

Interview Answer

Anonymous

Mar 18, 2019

Break down the number into it's digits and increment (char)1 by the number's value-1.

1