String Processing in Python: Integer to String

August 10, 2018 comments 99 Reads

In this video, we will be solving the following problem:
You are given some integer as input, (i.e. … -3, -2, -1, 0, 1, 2, 3 …)
Convert the integer you are given to a string. Do not make use
of the built-in “str” function.
Input: 123
Output: “123”
Input: -123
Output: “-123”
This video is part of a series on string processing and, specifically, on how these problems tend to show up in the context of a technical interview:
This video is also part of an “Algorithm” series. For more algorithm tutorials:
The software written in this video is available at:
Do you like the development environment I’m using in this video? It’s a customized version of vim that’s enhanced for Python development. If you want to see how I set up my vim, I have a series on this here:
If you’ve found this video helpful and want to stay up-to-date with the latest videos posted on this channel, please subscribe: