News for hackers. Stuff that matters.
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.
Re:How to Interview Engineers by btschaegg on Wednesday June 28, 2017 @03:06AM (#14652224)
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.
Re:How to Interview Engineers by baddox on Tuesday June 27, 2017 @07:33PM (#14650549)
Not for interviewing for a company with reasonable interview practices.