I aim for "first thing that I can get to work and doesn't take more than 20 seconds". Usually they run in under 2 (Common Lisp is my language of choice). Then for the part 2 portions I may have to optimize.
I sometimes go back and clean up my solutions, though I aim for a combination of clarity and performance if I do that, clarity first.
I sometimes go back and clean up my solutions, though I aim for a combination of clarity and performance if I do that, clarity first.