News for hackers. Stuff that matters.
Re:Panic at the Job Market by realsed on Wednesday July 17, 2024 @05:10PM (#40990390)
Curious. What skills from the "return all elements from a matrix in a spiral order" make you a good mentor? Or say something about your skills keeping code clean?
Re:Panic at the Job Market by auggierose on Wednesday July 17, 2024 @06:30PM (#40990954)
I don't know what "elements from a matrix in spiral order" is supposed to mean. If it is that for the matrix

    A B 
    C D
    E F
you are supposed to return A B D C E F, then if you cannot do this, I don't care about how clean your code is.
Re:Panic at the Job Market by ikiris on Wednesday July 17, 2024 @10:33PM (#40992004)
https://leetcode.com/problems/spiral-matrix/description/

If you ask me a question like this, I'm going to judge your company pretty harshly.

Re:Panic at the Job Market by ajkjk on Thursday July 18, 2024 @12:15AM (#40992463)
Isn't the answer "sure, seems trivial, let me do that in ten minutes for you"?
Re:Panic at the Job Market by auggierose on Thursday July 18, 2024 @05:29AM (#40993916)
Thanks for the link, but I don't see a problem with that question. If you find it difficult, I wouldn't want you anywhere near the code base of my (hypothetical) company. So I guess the question would be doing its job just fine, for both of us.
Re:Panic at the Job Market by ikiris on Thursday July 18, 2024 @11:30AM (#40996530)
I didn't say it was difficult, but man you sound it with that additude/arrogance.
Re:Panic at the Job Market by ajkjk on Wednesday July 17, 2024 @09:19PM (#40991725)
None, but a) if you can't write that trivial code I don't want to be on a team with you anyway because I'm going to be teaching you how to basically think, and b) the part where you talk about the code, not the part where you write it, is the part where I try to detect if you're any good at communication or abstract thought.

(disclaimer: all of this is notwithstanding the fact that some people's brains shut down specifically during interviews/places where they feel under pressure, which I have nothing but sympathy for. Afaik that's an unsolved problem with coding interviews. I would always try to lower their stress but it is not a sure thing.)

Re:Panic at the Job Market by dario_od on Thursday July 18, 2024 @12:29PM (#40997254)
I'm really against leet code interviews in general as a concept.

Having said this, I'd never hire a person that's not able to reason about this. Actually writing the implementation is really secondary