Tripadvisor Interview Question

Convert an int to a string without casting

Interview Answers

Anonymous

Oct 10, 2018

chr(48 + number). using ascii values

Anonymous

May 22, 2015

The question was asked for Python, so I'm not sure what other solutions would look like.

Anonymous

May 22, 2015

Given int i String str = "" + i; Is this solution to simple?