May 30, 2006

Simple Programming Exercises, Part II

Posted by Stephen on May 30, 2006 in Computing, Programming, Stuff

Here are some more simple programming exercises: Implement atoi() Implement itoa() I got these ideas from Joel Spolsky’s article on conducting job interviews. As with before, I solved both problems with a pen and paper, since that’s what I’d have in a real job interview. Here is my implementation of atoi(3): int atoi(char* str) { int last; […]