correctness is usually not sufficient (and may not even be strictly necessary). You can get a problem “correct”, but still demonstrate weak analytical skills or weak coding skills.
Coding Interviews and the Importance of Perfection
Gayle Laakmann McDowell
33415
Great article and useful code examples. But not sure I understand your point of view here. Could you elaborate a bit?
All of your examples were of incorrect code submitted by a candidate, requiring them to illustrate their capacity (or lack thereof) to address those errors and/or inefficiencies in smart and thoughtful ways.
Could you give some examples of “correct” code that isn’t “sufficient” and why?