Interview Question

Interview

Code was done in Python on a Google Docs document. First

  weeder question was implementing binary search. Next question was about text processing and after the initial solution was given, additional constraints were added to encourage me to make a better solution.
Answer

Interview Answer

1 Answer

0

Having multiple methods in mind is useful, and after listing a few I was encouraged to go down a path I came up with using Python's generators to exploit lazy programming and decrease memory usage.

Interview Candidate on Apr 10, 2014

Add Answers or Comments

To comment on this, Sign In or Sign Up.