Here I go over a coding question I was recently asked during an interview.
You can find the source here: https://gist.github.com/2604992
Notes
- In some languages, prepending to a list is faster than appending. In Python it doesn’t matter.
- The weird characters in the Vim session are whitespace characters.
$is a newline character.