Interviewer: can you reverse a string?
-
Interviewer: can you reverse a string?
Me: would you like to see a random access invertible shuffle iterator which visits the items in a low discrepancy sequence to improve results in stochastic algorithms?
Interviewer: uhhh?
Me: how bout a point set that is hyper uniform over both space, and separately, time?
Whenever I have to interview again that is how it's going to go down, and will probably result in rejection 😂
@demofox Oh, that's easy. Just perform a complex valued DFT of the byte values twice in a row. It's O(n log n) so it's even *relatively* efficient.
-
Interviewer: can you reverse a string?
Me: would you like to see a random access invertible shuffle iterator which visits the items in a low discrepancy sequence to improve results in stochastic algorithms?
Interviewer: uhhh?
Me: how bout a point set that is hyper uniform over both space, and separately, time?
Whenever I have to interview again that is how it's going to go down, and will probably result in rejection 😂
@demofox INTERVIEWER: Can you reverse a string?
ME, pulling a string from my pocket: Of course.
-
@demofox INTERVIEWER: Can you reverse a string?
ME, pulling a string from my pocket: Of course.
@shanecelis lol I laughed in real life
-
Interviewer: can you reverse a string?
Me: would you like to see a random access invertible shuffle iterator which visits the items in a low discrepancy sequence to improve results in stochastic algorithms?
Interviewer: uhhh?
Me: how bout a point set that is hyper uniform over both space, and separately, time?
Whenever I have to interview again that is how it's going to go down, and will probably result in rejection 😂
@demofox a long long time ago last time I was unemployed and job hunting I had an interview with apple and they asked me to reverse a linked list. so I said I'd use whatever library function is available. interviewer said no, pretend there isn't one. then I gave them a naive O(N) solution and then the interviewer said it was no good because it used recursion and thus too much stack memory and what if the device didn't have enough memory?!
-
@demofox a long long time ago last time I was unemployed and job hunting I had an interview with apple and they asked me to reverse a linked list. so I said I'd use whatever library function is available. interviewer said no, pretend there isn't one. then I gave them a naive O(N) solution and then the interviewer said it was no good because it used recursion and thus too much stack memory and what if the device didn't have enough memory?!
@demofox tbh it was good to have bombed that one because it helped me realize I should brush up on my c++ before applying for any of the jobs I actually wanted
-
@demofox tbh it was good to have bombed that one because it helped me realize I should brush up on my c++ before applying for any of the jobs I actually wanted
@demofox anyways on the reversing a linked list challenge, I want to say that I asked them what the requirements would be eg context of its use and the interviewer was like :) no just come up with something impress us :) :) but I might be misremembering as that was ~10 years ago.
-
@demofox anyways on the reversing a linked list challenge, I want to say that I asked them what the requirements would be eg context of its use and the interviewer was like :) no just come up with something impress us :) :) but I might be misremembering as that was ~10 years ago.
@aeva I like your answers, fwiw.
-
@aeva I like your answers, fwiw.
@demofox I still think they are correct answers, because they prioritize not introducing premature complexity before the requirements are known, and if you don't have any requirements, then optimization is a waste of time because you don't know what you're optimizing for.
-
@demofox I still think they are correct answers, because they prioritize not introducing premature complexity before the requirements are known, and if you don't have any requirements, then optimization is a waste of time because you don't know what you're optimizing for.
@aeva agreed. They show practical thinking and experience
-
@demofox anyways on the reversing a linked list challenge, I want to say that I asked them what the requirements would be eg context of its use and the interviewer was like :) no just come up with something impress us :) :) but I might be misremembering as that was ~10 years ago.
@demofox @aeva I would have fucking punched him, ngl
"Impress me"
"If you're trying to reverse a singly-linked list long enough that stack space is an issue for a recursive algorithm, then your original software design was bad to begin with. Tell me what it's actually trying to do and I'll tell you what you should have used instead (it's probably an array or b-tree)."
-
@demofox anyways on the reversing a linked list challenge, I want to say that I asked them what the requirements would be eg context of its use and the interviewer was like :) no just come up with something impress us :) :) but I might be misremembering as that was ~10 years ago.
-
@demofox I feel like anyone asking you to reverse a string has either a) not read your resume or b) has a completely broken hiring culture. Either way probably quickest to say a pleasant good bye then and there.
@ataylor I interviewed at a place not that long ago for practice and they ended the interview process early saying they thought how I filled a function out wasnt planned well enough. The task was to fill out a function which took a button press event and it was supposed to act like a calculator.
I was waiting to talk about graphics and crazy algorithm stuff and never got the chance.
They were a big name place too but no sense in shaming them. They were kind. Maybe more behind the scenes? Idk. -
@ataylor I interviewed at a place not that long ago for practice and they ended the interview process early saying they thought how I filled a function out wasnt planned well enough. The task was to fill out a function which took a button press event and it was supposed to act like a calculator.
I was waiting to talk about graphics and crazy algorithm stuff and never got the chance.
They were a big name place too but no sense in shaming them. They were kind. Maybe more behind the scenes? Idk.@ataylor but I had a phone prescreen where we talked about architecting a rendering engine etc and that went well, so then I had to come on site to implement a simple function and get cut early 😂
We are all fallible humans just doing our best, myself included. -
@ataylor but I had a phone prescreen where we talked about architecting a rendering engine etc and that went well, so then I had to come on site to implement a simple function and get cut early 😂
We are all fallible humans just doing our best, myself included.@demofox broken interview processes are unfortunately really common. It’s not really the fault of the people doing the interviewing (usually), but still frustrating to encounter.
In a funny inversion of the typical “I would just call a function” whiteboard problem: I interviewed at a big AAA studio years ago where the interviewer got upset that I had written out a fill loop instead of calling memset. (Which I did specifically because of this problem! You can’t win.)
-
@demofox broken interview processes are unfortunately really common. It’s not really the fault of the people doing the interviewing (usually), but still frustrating to encounter.
In a funny inversion of the typical “I would just call a function” whiteboard problem: I interviewed at a big AAA studio years ago where the interviewer got upset that I had written out a fill loop instead of calling memset. (Which I did specifically because of this problem! You can’t win.)
-
undefined oblomov@sociale.network shared this topic