How would you implement an algorithm for finding the sum of all digits in an integer?
Anonymous
I wanted to implement a simple and somewhat cheat-y Python one-liner, but my interviewer had me take a step back and let me implement a simple program which utilizes integer division remainders and floors.
Check out your Company Bowl for anonymous work chats.