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.
Examples:
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:
http://bit.ly/lp_string
This video is also part of an “Algorithm” series. For more algorithm tutorials:
http://bit.ly/lp_algos
The software written in this video is available at:
https://github.com/vprusso/youtube_tutorials/blob/master/algorithms/string_processing/int_to_str.py
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:
http://bit.ly/lp_vim
If you’ve found this video helpful and want to stay up-to-date with the latest videos posted on this channel, please subscribe:
http://bit.ly/lp_subscribe