Re:How to Interview Engineers
by baddox on Monday June 26, 2017 @09:33PM
(#14641912)
I highly doubt I would ask if the inputs are sorted. I wouldn't expect them to be (why would they be, after all?), and I'd probably just give a solution that works regardless.
[ Parent
| on HN ]
I agree. Also, since we're talking about two entries here, there really isn't much work to do...
One could even argue that relying on the order of the items in this case is going to result in a worse design overall (it's one additional thing the caller can get wrong).
Re:How to Interview Engineers
by FilterSweep on Tuesday June 27, 2017 @10:06AM
(#14645467)
I think you just received some good interview advice, unintentionally.