r/programming • • Mar 01 '17

Programmers are confessing their coding sins to protest a broken job interview process. “Whiteboard” interviews are widely hated. They also discriminate against people who are already underrepresented in the field.

https://theoutline.com/post/1166/programmers-are-confessing-their-coding-sins-to-protest-a-broken-job-interview-process
1.0k Upvotes

717 comments sorted by

View all comments

Show parent comments

1

u/AmalgamDragon Mar 01 '17

You can keep dropping personal insults and snark throughout these posts, it doesn't make anything you say seem more correct.

Nope, and that isn't the point of those comments any more than they were the point of your such comments. Rather the point is that your own such comments needed to be answered in kind.

I'm always happy to hear solutions I haven't thought of. Would like to hear for your solution how you plan to do binary search on a doubly linked list with a mid pointer.

There's a trick to it. Are you unable to figure out what it is?

2

u/quicknir Mar 01 '17

None of my comments insulted you personally in any kind of way.

No, I can't figure it out. Please tell me. How do you do it?

2

u/AmalgamDragon Mar 01 '17

None of my comments insulted you personally in any kind of way.

Incorrect. This was personally insulting: "I think what you are saying is clearly false on its face." ... "If you can come up with a good 6 hour problem in an hour or less, you're either a savant at this particular thing, or your problems are not good. There's just not really any other possibility."

It was personal (i.e. use of you, you're, your) and insulting (i.e. disrespectful).

This came after you insulted another poster with: "Lots of confidence. No data. How many randoms posting on reddit have more data, resources, or incentives to figure out better interviews than Google or Facebook? Right, none."

No, I can't figure it out. Please tell me. How do you do it?

Please take some more time to figure out. There's still plenty of time left in the hour!

2

u/quicknir Mar 01 '17

Well, clearly I don't control what you find insulting. I was saying that I thought that what you were saying is clearly false. Taking issue with what you said, not you as a person. Similarly with what I said about the 6 hour problem; I was being sincere. I know how long it takes most people to do this sort of thing, so if you can come up with a good problem in so little time you are either far above the norm, or maybe the problems you are coming up with are not good. Anyway, you can choose to be offended and lash out all you like.

As far as I know, it is impossible to do log(N) search on a sorted linked list with a single pointer into the middle, and therefore, I am not trying to figure it out. My guess is your solution will involve mutating the definition of a linked list so it's a skip list, or so that the nodes are contiguous. Or something else, not particularly clever nor interesting.

So please, if you have something interesting to say, say it in your next post, or else we can draw this conversation to a close.

2

u/AmalgamDragon Mar 01 '17

HR to you: We've decided not to pursue your candidacy further at this time.

Me to the team: [your name] doesn't have sufficient knowledge of data structures or strong enough problem solving skills. Couldn't figure out how to combine a linked list, a binary tree, and a few pointers for caching.

Well, clearly I don't control what you find insulting.

Just like it's the candidates that are problem, not the way you interview.

1

u/quicknir Mar 01 '17

Right, so your solution is not in fact using a linked list solely, but in fact, using a combination of data structures. So your description of the solution was wrong. If you are going to use a binary tree, you don't really need a linked list. If you aren't going to restrict yourself to a linked list, I could have simply answered your question by saying "a linked list and two heaps".

Judging from your posts up and down this entire thread, you have some serious sour grapes about algorithms interviews. Best of luck in your next interview, you'll need it.

2

u/AmalgamDragon Mar 01 '17

It was purposefully incomplete. I didn't say how the mid-pointer was maintained or how the binary search was accomplished. The point was to see if you could come up with any other solution beyond the one you know already.

Put another way it was to see if you can do what you ask candidates to do or if your a hypocrite as is typical of defenders of the status quo.

Now we know.

I interview just fine, but I think the amount of prep that has become necessary is utterly ridiculous due how irrelevant it is to actually to the job.

3

u/quicknir Mar 02 '17

You put a constraint on the problem that was not actually there, and worded it incorrectly. When you say "this can be done with a LL", the implication is that this is the only data structure you need. Like "this can be assembled with a screwdriver" is not something that would be said if you also needed a buzz saw, drill, etc, in addition to a screwdriver. So I tried to figure out a way to do it with only a LL.

To be honest I still have no idea what you would use the linked list for; if you use a BST you do not need the LL for anything. It's hard trying to figure out someone else's convoluted inferior solution, without doubt.

If you are actually curious, when I was asked this problem, I came up with the two heap solution in around 5 minutes. It will probably be more comforting for you to not believe me though, so by all means.

1

u/AmalgamDragon Mar 02 '17

You put a constraint on the problem that was not actually there, and worded it incorrectly. When you say "this can be done with a LL", the implication is that this is the only data structure you need. Like "this can be assembled with a screwdriver" is not something that would be said if you also needed a buzz saw, drill, etc, in addition to a screwdriver.

Strawman. That isn't what I said.

I didn't say BST. I said binary tree (and some pointers for caching) beyond the linked list. I also didn't say what was in the binary tree or the pointers for caching. It's not the numerical values. Using just a BST won't get you O(1) for getting the min, max, median, and a fixed number of percentiles all at the same time.

It's hard trying to figure out someone else's convoluted inferior solution, without doubt.

Another strawman. The solution is superior in the real world in that it allows getting the min, max, median, and a fixed number of percentiles as O(1) while also maintaining the same O(lg n) for insertion and O(n) for memory usage.

It will probably be more comforting for you to not believe me though, so by all means.

Another strawman. You aren't threatening. Merely egotistical and hypocritical.