|
FamDav posted:for coding competency i like these two questions: how many people took a big poo poo on your desk when you asked them this because that would be my first instinct
|
# ? Nov 1, 2014 00:28 |
|
|
# ? Jun 5, 2024 07:52 |
|
hobbesmaster posted:I want to smack whoever popularize the pointer swap w/o a temporary trick question the only time i've seen xor swap in the wild was for some ancient c this was the implementation code:
|
# ? Nov 1, 2014 00:29 |
|
Brain Candy posted:the only time i've seen xor swap in the wild was for some ancient c lolll
|
# ? Nov 1, 2014 00:29 |
|
Bloody posted:1 weird trick to save... a register* xchg eax, ebx but if the compiler understands what you're doing it can cost nothing
|
# ? Nov 1, 2014 00:34 |
|
hobbesmaster posted:xchg eax, ebx look @ this guy w/ his fancy pants x86 instructions
|
# ? Nov 1, 2014 00:35 |
|
Bloody posted:reimplementing basic functionality of std libraries or os utilities is a massive red flag that you're being interviewed by plangers can you demonstrate mastery of a tool by means of reimplementing a highly simplified version. when the basic functionality is very similar to the system you are writing, this is a good interview task for ex: you are doing a lot of text processing or text extraction and ask people to implement regex because they'll be doing it all day every day
|
# ? Nov 1, 2014 00:37 |
|
i can write good c but don't expect me to write a compiler i can write decent assembly but don't expect me to design a cpu
|
# ? Nov 1, 2014 00:38 |
|
my job: take every advantage modern tools offer to reduce my own work burden interview question: reimplement basic tool functionality yep this maps well
|
# ? Nov 1, 2014 00:39 |
|
common library reimplementation is a decent way of figuring out a person's ability to check edge cases, because there's always a million in generic libs
|
# ? Nov 1, 2014 00:41 |
|
Bloody posted:i can write good c but don't expect me to write a compiler i was not suggesting you reimplement your compiler, well, that is unless you're interviewing for a compiler job i was asked to reimplement a simple version of wget for a job where i had to write a web crawler. if you can, boiling down the problem you expect them to be doing into a small task, can be good. this is different from the basic "can you code an algorithm" competency screeners
|
# ? Nov 1, 2014 00:44 |
|
i like doing the toy problems but i think it would be pretty hard to get a job where you did them regularly like maybe if people would just call me and say "help i want to do this with a million items but it is too slow", and i could just come and say "hmmmm" and find a rly smart way to do it. that would be pretty nice i think. e: and i could have a funny image macro with "sorry, it's np complete" that i would post if i couldn't make it fast suffix fucked around with this message at 00:48 on Nov 1, 2014 |
# ? Nov 1, 2014 00:44 |
|
and sometimes, the domain in which you work overlaps heavily with a common tool or library
|
# ? Nov 1, 2014 00:46 |
|
Brain Candy posted:the only time i've seen xor swap in the wild was for some ancient c For shits and giggles I added a XOR swap to my code to permanently sit there disabled by a macro: code:
|
# ? Nov 1, 2014 01:06 |
|
suffix posted:i like doing the toy problems it's called academia
|
# ? Nov 1, 2014 01:07 |
|
JewKiller 3000 posted:it's called academia rack them.
|
# ? Nov 1, 2014 01:13 |
|
my last interview question was "design a parking lot" and I wrote out some classes and interfaces and we talked through the problem together and thought about caveats and stuff. it was a good question because it's open ended and can get as technically involved as you want/need
|
# ? Nov 1, 2014 01:22 |
|
Plastic Snake posted:my last interview question was "design a parking lot" and I wrote out some classes and interfaces and we talked through the problem together and thought about caveats and stuff. it was a good question because it's open ended and can get as technically involved as you want/need that ones not bad. i'm gonna steal it i think
|
# ? Nov 1, 2014 01:25 |
|
Don't you just grab a piece of paper and draw lines for the cars?
|
# ? Nov 1, 2014 01:28 |
|
tef posted:for ex: you are doing a lot of text processing or text extraction and ask people to implement regex because they'll be doing it all day every day I'm kind of glad I didn't have to implement support for trailers as an interview question though.
|
# ? Nov 1, 2014 01:35 |
|
I don't know if we still have it, but we at least used to have an interview question that looked like this:code:
Some people suggested adding the values to a map or sorting them and doing a binary search. One guy finally said, "Isn't there already a Collections.contains() method?" I liked that guy.
|
# ? Nov 1, 2014 01:44 |
|
MrMoo posted:Don't you just grab a piece of paper and draw lines for the cars? that's a nub mistake, the pros will always make sure they bring some Hot Wheels
|
# ? Nov 1, 2014 02:01 |
|
I wish I was ever asked interview questions like those but they never call dudes without computer degrees to interviews here where I live lol owned
|
# ? Nov 1, 2014 04:02 |
|
Blinkz0rz posted:that ones not bad. i'm gonna steal it i think that one is in a book or something I've read it as a recommended object oriented test
|
# ? Nov 1, 2014 04:23 |
|
hobbesmaster posted:seriously Did not deal with any bullshit questions like this in my Amazon interview, but they were five 40 minute interviews back to back which as pretty grueling. One of the guys who did the whole open ended question of here's a real problem I had, how would you solve it? I really liked the stuff he was working on but his team wasn't hiring, he was just the control to make sure the actual hiring teams weren't being biased in their selection (too easy or too hard). Two of them asked me mostly soft questions about my experience but they both asked at least one technical questions from the standard poo poo: How to get the Nth element from the end of a linked list? How to get the depth of a tree? The other two interviewers were obviously devs: One of them gave me the question of here is an array of integers in the range 0..n but one is missing (replaced with a 0), return which number it is. I knew the answer from studying up on typical interview questions, and so they asked for the follow up harder question of there being two numbers missing. Apparently there is a way to calculate it see this if you care http://stackoverflow.com/q/3492302/102483 but I said in that case I'd just sort the array in O(n log n) which is close enough to the O(n) you have to do anyways and return the two non consecutive numbers and called it a day. They were satisfied with that and then actually asked a decent design question about how I would make my own Photoshop clone and the necessary abstractions I would use to make it work. The last guy posed a fun question about how I would solve the problem of given a string with a message and another string with a bunch of letters to write a function that would return whether the message could be created from the String of characters. I came up with a crappy algorithm, and then talked about how to optimize it and I actually did find a significant improvement without any prodding. Then we went on to discuss the more general problem of trying to do that same thing with multiple clients trying to figure out if their message could be formed from the same bank of letters and had some cool concurrency discussions. tldr; I guess I got lucky? Janitor Prime fucked around with this message at 06:53 on Nov 1, 2014 |
# ? Nov 1, 2014 06:51 |
|
Plastic Snake posted:my last interview question was "design a parking lot" and I wrote out some classes and interfaces and we talked through the problem together and thought about caveats and stuff. it was a good question because it's open ended and can get as technically involved as you want/need I love these type of questions because it presents a problem I can sperg out about without my brain hitting the panic button
|
# ? Nov 1, 2014 14:22 |
|
rotor posted:that's a nub mistake, the pros will always make sure they bring some Hot Wheels roll into an interview with a brief case full of hot wheels, a jar of jelly beans with a correct count, a table of common objects and how many ping pong balls they contain, and a list of all the piano tuners in manhattan
|
# ? Nov 1, 2014 14:30 |
|
Cocoa Crispies posted:roll into an interview with a brief case full of hot wheels, a jar of jelly beans with a correct count, a table of common objects and how many ping pong balls they contain, and a list of all the piano tuners in manhattan but what if I get asked to move Mount Everest?!
|
# ? Nov 1, 2014 15:43 |
|
from the snack overflow link: I had never seen/heard/considered this variation before, so I panicked and couldn't answer the question. The interviewer insisted on knowing my thought process, so I mentioned that perhaps we can get more information by comparing against the expected product, or perhaps doing a second pass after having gathered some information from the first pass, etc, but I really was just shooting in the dark rather than actually having a clear path to the solution. uh, panic at something new? well that question worked incredibly well.
|
# ? Nov 1, 2014 15:46 |
|
hobbesmaster posted:from the snack overflow link: there's the old joke about the first grader who knows how to subtract spoons from things but not forks
|
# ? Nov 1, 2014 16:56 |
|
FamDav posted:are these good or bad questions rotor i need your validation why are people so obsessed with data. most programming I do deals with states, data is incidental. even then the most important aspects of data in my day to day work are lifetime, ownership and mutable vs immutable, not format. I used to obsess over performance too but nowadays who cares, I'll just go O(n) and maybe some day ask a profiler if I should bother optimizing personally, when my boss asked for suggestions about interview questions, I told him to make them read code. explain what this code does, fix the bug in this code, implement this new feature, etc.
|
# ? Nov 1, 2014 17:32 |
|
syntaxrigger posted:I love these type of questions because it presents a problem I can sperg out about without my brain hitting the panic button yeah it was a really enjoyable interview. I took the job and my team owns. I've since used it to interview newer candidates and it's really interesting to see the different ways people approach the problem.
|
# ? Nov 2, 2014 04:02 |
|
Janitor Prime posted:
and this is probably my number one reason why those interview questions suck
|
# ? Nov 2, 2014 06:27 |
|
rotor posted:and this is probably my number one reason why those interview questions suck the worst part of this question is: okay, what if 2 numbers are missing? maybe you figure it out and then you do out the math to figure out the two numbers. okay what if k numbers are missing? shut the gently caress up. you never actually implemented the solution, because its actually a fairly nuanced solution.
|
# ? Nov 2, 2014 06:46 |
|
no, the worst part is that the ability to answer this sort of contrived bullshit is the gateway to a lot of engineering organizations.
|
# ? Nov 2, 2014 06:50 |
|
if I can successfully study for your interview, then your interview is garbage.
|
# ? Nov 2, 2014 06:51 |
|
interviews that can be studied for will simply single out the candidates with the most interviewing experience, which is probably not who you want to hire
|
# ? Nov 2, 2014 06:53 |
|
what if i answer i dont know to every question?
|
# ? Nov 2, 2014 07:37 |
|
then you will never get job
|
# ? Nov 2, 2014 08:25 |
|
lol if every interview youve ever had isnt a casual conversation with one or two people you'll be working with followed quickly with salary negotiation this thread is making me realize how dumb i am tho, thank god im not trying to be a programmer
|
# ? Nov 2, 2014 09:03 |
|
|
# ? Jun 5, 2024 07:52 |
|
FamDav posted:the worst part of this question is: Generate a list of all numbers 0...n and subtract one list from the other? How is this hard?
|
# ? Nov 2, 2014 10:37 |