News for hackers. Stuff that matters.
Re:Where are the low level system engineers? by pjc50 on Wednesday May 04, 2022 @10:53AM (#31261310)
I'd be tempted to just use sort(1) in that situation and say "what? it's in C" if questioned.
Re:Where are the low level system engineers? by AnimalMuppet on Wednesday May 04, 2022 @09:01PM (#31268068)
I'd actually hire you for that. You want to not waste time reinventing the wheel? Cool!

But then, when I interview, I don't ask leetcode questions in the first place...

Re:Where are the low level system engineers? by ummonk on Wednesday May 04, 2022 @09:17PM (#31268192)
This is missing the point of such questions. They aren’t aimed at asking “how would you solve this easy task?”. What they’re checking is “since we can’t have you demonstrate how you would solve a complex task in the short time allotted to an interview, let’s see how you can solve a smaller pretend task.”
Re:Where are the low level system engineers? by flukus on Thursday May 05, 2022 @12:04AM (#31269310)
In practice for this particular question they're asking if you've memorized sort algorithms. I have not (or I've forgotten since) and I doubt even the brightest minds of the industry that did invent them did so within an hour long job interview.
Re:Where are the low level system engineers? by hansvm on Thursday May 05, 2022 @10:23AM (#31273738)
Was that (implement sort) the main point of the question? Especially given the 15 minute time window this sounds more like some kind of fizzbuzz-style question (here's a basic idea, can you translate it to code somehow in some language?). Usually when interviewers give me that kind of thing they're literally fine with bubble-sort (which I'd hope anyone could code on the fly), or even just assuming some appropriately shaped sort function exists and writing the rest of the code around it.
Re:Where are the low level system engineers? by ummonk on Friday May 06, 2022 @08:36PM (#31291096)
No that's not what the question is asking. You should be using the standard library sort function (or making one up if you can't remember the specific API).