Amazon.com Interview Question
1,566 Interview Reviews |
Back to all Amazon.com Interview Questions & Reviews
Interview questions and reviews posted anonymously by interview candidates
Interview Question for Software Engineer at Amazon.com:
Helpful Question?
Yes |
No
Inappropriate?
Answers & Comments (2)
def to_string(number):
chars = []
while number > 0:
nNum = number % 10
number /= 10
chars.append(chr(48 + nNum))
chars.reverse()
return chars
Which would give something like
>>> to_string(34839)
['3', '4', '8', '3', '9']
Helpful Answer?
Yes |
No
Inappropriate?
To comment on this
question,
Sign In with Facebook or
Sign Up



0 of 0 people found this helpful
by Interview Candidate: