Implement an algorithm to solve X problem in your favorite programming language.
Anonym
Created an algorithm then started programming it immediately. Followed up with considering some tests. Should have started with considering testing first as it is less error prone and will help you understand the question better. Wrote the same code twice, if this is happening you are almost certainly making some mistake.