Ten patterns that cover most coding interviews. Pick one for the keywords that give it away, what it costs, and why the obvious alternative fails.