Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


https://leetcode.com/problems/spiral-matrix/description/

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


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.


I didn't say it was difficult, but man you sound it with that additude/arrogance.


Isn't the answer "sure, seems trivial, let me do that in ten minutes for you"?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: