News for hackers. Stuff that matters.
Re:IBM's Asshole Test by f0e4c2f7 on Wednesday May 04, 2022 @05:57PM (#31266379)
This story strikes me as pretty funny. As if he might say "damn, I was hoping you knew. We've been working on this one for weeks!"
Re:IBM's Asshole Test by krono on Wednesday May 04, 2022 @06:13PM (#31266539)

  Near the beginning of a class, Professor Neyman wrote two problems on the blackboard. Dantzig arrived late and assumed that they were a homework assignment.
  According to Dantzig, they "seemed to be a little harder than usual", but a few days later he handed in completed solutions for both problems, still believing that they were an assignment that was overdue.
  Six weeks later, an excited Neyman eagerly told him that the "homework" problems he had solved were two of the most famous unsolved problems in statistics.
https://en.wikipedia.org/wiki/George_Dantzig

Reminds me of that :)

edit: Here's a slightly more colourful telling of the story: https://www.snopes.com/fact-check/the-unsolvable-math-proble...

Does anyone happen to know which two problems Dantzig solved? Don't seem to be having much luck on my searches

Re:IBM's Asshole Test by betamike on Wednesday May 04, 2022 @06:22PM (#31266630)
Hah! This reminded me of a similar story:

"In 1951, David A. Huffman and his MIT information theory classmates were given the choice of a term paper or a final exam. The professor, Robert M. Fano, assigned a term paper on the problem of finding the most efficient binary code. Huffman, unable to prove any codes were the most efficient, was about to give up and start studying for the final when he hit upon the idea of using a frequency-sorted binary tree and quickly proved this method the most efficient.[5]

In doing so, Huffman outdid Fano, who had worked with Claude Shannon to develop a similar code. Building the tree from the bottom up guaranteed optimality, unlike the top-down approach of Shannon–Fano coding."

https://en.wikipedia.org/wiki/Huffman_coding#History

Re:IBM's Asshole Test by dekhn on Wednesday May 04, 2022 @07:09PM (#31267053)
I took Huffman's class at UCSC and he said he had actually thrown the solution in the garbage before realizing it worked and retrieving it.

When we started grad school, one of the professors introduced themself and said they thought it was interesting that adaptive optics was being used in astronomy and maybe the same idea could be used to improve microscopy and 7 years later a new phd was born doing exactly that!

Re:IBM's Asshole Test by glandium on Wednesday May 04, 2022 @08:15PM (#31267680)

  Over time, some facts were altered, but the basic story persisted in the form of an urban legend and as an introductory scene in the movie Good Will Hunting.
Aha, I thought this sounded familiar...
Re:IBM's Asshole Test by caf on Wednesday May 04, 2022 @06:22PM (#31266629)
There's a lesson there too about how solving problems is often easier once you know it can be solved.
Re:IBM's Asshole Test by JadeNB on Thursday May 05, 2022 @04:42AM (#31271036)
> There's a lesson there too about how solving problems is often easier once you know it can be solved.

Or perhaps when you don't know it can't (yet) be solved.

Re:IBM's Asshole Test by Victerius on Wednesday May 04, 2022 @06:23PM (#31266637)
When I started reading my brain went straight to Von Neumann. Now I really want to read a fanfic about a story where John Von Neumann is invited to a Google interview.
Re:IBM's Asshole Test by imglorp on Wednesday May 04, 2022 @06:36PM (#31266770)
Maybe not Von Neumann at google, but how about Feynman at Microsoft?

https://sellsbrothers.com/12395

Re:IBM's Asshole Test by JadeNB on Thursday May 05, 2022 @02:04AM (#31270088)
> The people authorized to open manhole covers could easily be trained to do it safely.

Funny as it is, I would like to think that someone famous for his role in the investigation of the Challenger disaster would never flippantly say that a dangerous situation doesn't matter because "people … could easily be trained to do it safely." The fact that people can be trained to do something properly doesn't mean that trained people won't still sometimes do it improperly.

Re:IBM's Asshole Test by moffkalast on Wednesday May 04, 2022 @07:24PM (#31267176)
> That statement is a tautology.

This is giving me vietnam-style university flashbacks.

Re:IBM's Asshole Test by m463 on Thursday May 05, 2022 @02:00AM (#31270057)
> We are going to recommend you for immediate hiring into the marketing department.

I am reminded of this Feynman story:

https://longnow.org/essays/richard-feynman-connection-machin...

Re:IBM's Asshole Test by JadeNB on Thursday May 05, 2022 @02:01AM (#31270063)
Carlo Beenakker answered on MathOverflow (https://mathoverflow.net/a/298601):

> The two problems that Dantzig solved were eventually published in: On the Non-Existence of Tests of "Student's" Hypothesis Having Power Functions Independent of σ (1940) and in On the Fundamental Lemma of Neyman and Pearson (1951).

Re:IBM's Asshole Test by krono on Thursday May 05, 2022 @04:20AM (#31270893)
Thank you! Spent more time looking for that than I'm willing to admit
Re:IBM's Asshole Test by banana_giraffe on Wednesday May 04, 2022 @06:20PM (#31266614)
I once walked into an interview where some code was already written on a whiteboard. It was presented to me as a "find the problem with the code" sort of puzzle, and I pointed out the one big logic problem with it's algorithm and wrote a quick fix.

The interviewer responded with "hold on", and grabbed a colleague, pointed at the whiteboard, and the colleague said "yes! that'll fix it!" and ran off.

I was offered the job that I was clearly qualified for, but I declined. I often wondered how many candidates it took them to fix their bug.

Re:IBM's Asshole Test by greyhair on Thursday May 05, 2022 @10:07AM (#31273527)
I had an interview question that dealt with knowing some crazy shit about C data structure layout and pointers and casting. (Embedded development position)

You had to solve it on a blackboard, with chalk, and the intent (I later learned) was not necessarily that you got the right answer, but how you worked through it. Did you just lock up? Did you get frustrated? Did you ask the interviewer to clarify with more data? They wanted to see your thought process.

I was able to answer it (not everyone that got hired did), and when I was done, I looked at the interviewer and asked "Do you write code this way, here?". He laughed and said 'no, no no no'. I told him, I wasn't sure I would want to work there if they did. We both laughed. He ended up being my first supervisor at that company.

Hello Dan! (If you happen to read this...)

Re:IBM's Asshole Test by Victerius on Wednesday May 04, 2022 @06:25PM (#31266657)
> I was offered the job that I was clearly qualified for, but I declined.

Out of curiosity, why?

Re:IBM's Asshole Test by banana_giraffe on Wednesday May 04, 2022 @06:28PM (#31266685)
Nothing to do with this event, I just had another offer from a company I interviewed at during the same period that was more interesting to me.
Re:IBM's Asshole Test by eropple on Wednesday May 04, 2022 @06:29PM (#31266698)
Not the OP, but for my money, a company that does that isn't a company to work for. I don't work for free and you shouldn't either.
Re:IBM's Asshole Test by metadat on Wednesday May 04, 2022 @06:44PM (#31266836)
Honest question: What difference does it make whether you work on a l33tcode question or a real problem in the interview? At least the real problem has a chance of being interesting.

Sometimes I do give candidates examples of real challenges we're facing. The purpose is not to get anything for free, but rather to see if they're good at coming up with new ideas.

It also gets boring asking the same questions that may or may not have leaked to the Internet over and over.

AITA?

Re:IBM's Asshole Test by ryoshu on Wednesday May 04, 2022 @07:25PM (#31267181)
I prefer to use real problems with the work that have already been solved. It shows what the day-to-day is like, you know there's at least one solution to the problem, and you aren't asking someone to work for free.
Re:IBM's Asshole Test by c1ccccc1 on Wednesday May 04, 2022 @07:16PM (#31267118)
Giving actual problems during an interview is fine, and I'd actually prefer getting an interview problem that the company is really working on. I think people are just pattern-matching this to the kind of scam where the company farms out their work as multi-hour take-home problems with no intention of actually hiring the candidate afterwards.
Re:IBM's Asshole Test by johnnyanmac on Wednesday May 04, 2022 @08:12PM (#31267645)
I wouldn't say you are, but some people have been burned by the concept of spec work that employed tricks like this to basically get free brainstorming. In other industries like art it's especially egregious.

It's a real shame in tech with its (past and present) history of open source work and contributions that can be interpreted as such, especially with many projects nowadays being maintained by billion dollar coporations that can certainly pay a candidate for contributions. But that's a huge beast to tackle.

follow up note: I'm not sure if this[0] comment is parody or unironic, but situations like this are exactly what gives the idea such a bad reputation.

[0] https://news.ycombinator.com/item?id=31265554#31266239

Re:IBM's Asshole Test by ramraj07 on Wednesday May 04, 2022 @06:58PM (#31266956)
Leetcode is fine. Once a dude asked me to write out merge sort. Like, I’m not from a CS bg (I suppose that wouldn’t matter). And I literally did look at merge and other sorts two days back. But that didn’t matter, the only way you can write merge sort is if you memorize it (or spend an inordinate amount of time writing sorting algos). I didn’t get that job, but I’ve been monitoring that company and they’re not doing that well anyway. Perhaps a coincidence?
Re:IBM's Asshole Test by a1369209993 on Thursday May 05, 2022 @12:51AM (#31269614)
> the only way you can write merge sort is if you memorize it (or spend an inordinate amount of time writing sorting algos)

Umm, what?

  void merge(int* d,int const* a,size_t za,int const* b,size_t zb)
    {
    size_t zd = za+zb,ia=0,ib=0;
    for(size_t i=0; i<zd ;i++)
      {
      if(ia < za && ib < zb)
        {
        if(a[ia] < b[ib]) d[i] = a[ia++];
        else              d[i] = b[ib++];
        }
      else if(ia < za)    d[i] = a[ia++];
      else if(ib < zb)    d[i] = b[ib++];
      else abort(); // should have i==zd now
      }
    }
  void msort(int* d,size_t z,int const* s)
    {
    if(z==1) *d = *s;
    if(z<=1) return;
    size_t h = z - (z>>1); // round up
    int* x = malloc(h * sizeof *x);
    if(!x) abort(); // out of memory
    msort(x,h,s+(z-h));
    msort(d+h,z-h,s);
    merge(d,d+h,z-h,x,h);
    }
  // not that this is any *good*, but it does *work*
Are you using a absurdly broad definition of what counts as memorizing something or something?
Re:IBM's Asshole Test by dirkt on Thursday May 05, 2022 @03:20AM (#31270551)
> the only way you can write merge sort is if you memorize it

Nah. You only have to remember the central idea (if you have two sorted "runs", you can merge them into a single sorted run). You draw a quick diagram to explain the idea, you go ahead and write code that does it.

Then you apply recursion, and write down the overall algorithm (subdivide into runs until you can use some other method to sort it, then merge recursively).

Bonus points if you can explain the circumstances when this is useful (when you want to sort data that is a lot larger than your main memory, but you can write it on disk or tape). Which is kind of obsolete today, unless you are again dealing with BIG data (everything old is new again...)

Re:IBM's Asshole Test by ramraj07 on Thursday May 05, 2022 @05:49AM (#31271398)
That’s a great question. Thanks for continuing to ask these so I can avoid those orgs.

When I do come to having to decide on a sorting algorithm, I can refer to the code and algos and then decide. All I need to be able to do is understand the algorithm when I see it not memorize the differences between quick and merge sort. I’m actively working with multiple Olap and regular db solutions and my teams responsible for keeping 100 billion row tables in the most queryable format and it’s never been possible for me to make such a choice, only on whether I use spark or redshift or snowflake. So what exactly would you achieve by asking this question? The irony is I was rejected by 5 companies for not being technical, accepted by 1 where I’ve been thriving for years now at one of the most technical roles in the org.

Re:IBM's Asshole Test by eropple on Wednesday May 04, 2022 @11:08PM (#31268934)
> The purpose is not to get anything for free, but rather to see if they're good at coming up with new ideas.

These "new ideas" are things you should be paying them for.

Re:IBM's Asshole Test by maximus-decimus on Wednesday May 04, 2022 @06:54PM (#31266931)
Because you're literally working for them for free.
Re:IBM's Asshole Test by op00to on Wednesday May 04, 2022 @06:49PM (#31266883)
They are so understaffed they need to use interviewees to do their work! Bad news!
Re:IBM's Asshole Test by ansible on Thursday May 05, 2022 @09:04AM (#31272788)
Asking an interview candidate to solve an actual problem the business is currently facing is shitty, and I wouldn't want to work for them either.

Any code problems we present to the interview candidate are _clearly_ made-up examples. Though one of them was simplified from a real-world project we had years and years ago.

Re:IBM's Asshole Test by aerostable_slug on Wednesday May 04, 2022 @06:17PM (#31266579)
I interviewed for a security position where they asked me an interesting question (I don't exactly remember what it was). After thinking a bit I told them "you don't" — as in there isn't a solution to the problem they posed.

They shook their heads and admitted that as best as they could tell there wasn't a solution but they wanted to see if they missed anything. I got the job.

Re:IBM's Asshole Test by AceJohnny2 on Wednesday May 04, 2022 @07:14PM (#31267097)
I mean, when you know you're interviewing a Putnam winner, you could try and sneak in some "unsolved problems" ;)
Re:IBM's Asshole Test by BeetleB on Wednesday May 04, 2022 @11:37PM (#31269128)
Re:IBM's Asshole Test by bloodyplonker22 on Wednesday May 04, 2022 @06:27PM (#31266670)
I once interviewed a guy who was going to work on a different team than mine who, 20 minutes in, I knew he was going to pass everyone's interview. I then proceeded to give him a "take home test" which was actually my project for the sprint, but framed in a generic manner. He was a much better and faster programmer than I, and he completed it beyond my expectations. I made the modifications to make it work with my project and I even received a commendation at the end of the sprint on how clean "my work" was.
Re:IBM's Asshole Test by IggleSniggle on Wednesday May 04, 2022 @06:41PM (#31266816)
You, sir or madam, are an absolutely asshole. I admire your out-of-the-box thinking and your honesty, but I do not admire your natural proclivity towards exploitation.
Re:IBM's Asshole Test by actually_a_dog on Wednesday May 04, 2022 @06:45PM (#31266839)
I'm surprised you'd admit that kind of dishonesty on a public forum.
Re:IBM's Asshole Test by unsupp0rted on Wednesday May 04, 2022 @07:04PM (#31267006)
I wish more people would admit stuff. A lot of accounts are anonymous, and a lot of people have done mildly unethical things at companies.

Nothing's more interesting than finding out what people are really up to.

Re:IBM's Asshole Test by marktangotango on Wednesday May 04, 2022 @10:45PM (#31268767)
Lol, as if this would happen: "Hey aren't you that bloodyplonker who told a story about doing something dishonest on a public forum?" "No way I'd hire you!"

Like is the story even true? How would anyone connect the real person to this post? Is anyone even reading this?

Genuinely curious about anyones thoughts here.

Re:IBM's Asshole Test by jokab on Wednesday May 04, 2022 @07:05PM (#31267023)
This is funny. What was the tst about?