4 ms·
If you're writing seven lines of test cases and just running your solution through the interpreter/compiler without thinking, sure. If you're writing seven line
by philwelch 16y ago
If you're writing seven lines of test cases and just running your solution through the interpreter/compiler without thinking, sure. If you're writing seven lines of test cases and glancing back over to them as you write the solution it's a tool to help you think about whether your solutions are correct or not. In an interview/whiteboard environment you're going to be closer to the latter, if only because you're not going to have an interpreter at hand.