I’m not sure how I could ever incorporate a shower into an interview loop.
Interviews suck at evaluating anything that requires more than 40 minutes.
I’m not sure how I could ever incorporate a shower into an interview loop.
Interviews suck at evaluating anything that requires more than 40 minutes.
Your approach is just more of that.
That sounds like a recipe for disaster, though. Simplicity that doesn't account for every corner case in the domain of the code[0] is false simplicity, a bad abstraction. The challenge of writing simple code is this: threading a single, unifying concept through all corner cases.
--
[0] - I.e. when writing a function, you don't necessarily have to account for e.g. the off chance of heap getting corrupted externally in the middle of execution of your code. But you'd better account for all the values your function might be called with, in all combinations.
Some corner cases influence the core algorithm some don’t. Checking for degenerate cases and so on may not influence the core algorithm, if so need not be done in an interview.