I’ve been practising coding on the whiteboard for job interviews. This is very different than coding in front of a computer which has a keyboard, a monitor, and a nice editing program that allows you to correct your mistakes and type repetitive text very quickly. I’m trying to keep my programs simple and short, and writing in a C-like pseudocode.
This exercise comes from Skiena’s The Algorithm Design Manual[1]\(\)… » [Expand post] [Permalink]