Live data from Hacker News

That time when I failed the Microsoft interview

ochagavia.nl

231–240 of 322 posts

Re: That time when I failed the Microsoft interview

#231

Earlier quoted context omitted.

I think you're counting the overall sphere as the volume, but water would leak in through the finger holes so only their actual material counts. I suspect different weight bowling balls generally have different volumes.

Bowling balls aren't hollow, they're solid spheres with finger holes drilled in. The varying weights comes from having weighted cores inside.

Oh OK thanks, I didn't realise. I just had some fun looking at bowling ball cross sections.

Re: That time when I failed the Microsoft interview

#233
Most interesting is that interviewers were still asking such questions some fifteen years after Microsoft interviewers were told by HR to quit asking such questions (because the answer might rely on cultural knowledge, etc.)

Source: as an interviewer, I had to sit in that meeting.

Re: That time when I failed the Microsoft interview

#234

Once long ago when I interviewed at Apple I was asked the classic "fork in the road, two guys, one always tells the truth and one always lies" riddle, with complete earnestness as far as I could tell. Possibly the single worst interview question I've ever been asked. Of course I told the interviewer I'd heard it before and then gave the correct answer. In my case we just ended up chatting about previous experience in…

I have no idea and want the answers: Boat + bowling ball = level stays the same? Ball roll = the constant gradient is quickest?

The fastest path involves a small dip, though deriving that fact is non-trivial!

Here's one of my old blog posts where I do the derivation:

https://jasmcole.com/2020/04/13/briechistochrone

Re: That time when I failed the Microsoft interview

#235

Earlier quoted context omitted.

> I totally suck at meetings where the goal of the meeting is to make sure that everyone feels like their voice is being heard. Those are the worst. No, I don’t feel like I need to let Bob feel heard. Bob wants to create a nightmarish stack involving ElasticSearch and Kafka for a problem that grep and a flat text file could realistically handle. I have already explained to Bob that his solution is unnecessarily compl…

But is your solution scalable? Resilient against injection attacks? What about o11y? Is literally anyone besides you going to be running these searches? If so, you're going to want to put a UI around it and that means thinking about scalability, data sanitization, and o11y. Maybe Bob knows something about the scope of the problem that you don't? Look mate, software is business and business is marketing. If your solut…

> If you couldn't present it in a way such that it's obvious to Bob and everybody else that your solution is better, that's a failure on your part, not Bob's, the other participants', or the meeting organizers.

I invite you to go to any Arab country and tell them to legalize gay marriage.

Re: That time when I failed the Microsoft interview

#236
post #60

Earlier quoted context omitted.

>It’s an information theory question similar How would you approach it from an information theoretic sense?

In the initial state there's 24 (12 * 2) different possibilities: The marble you're looking for is one of 12 and it's either lighter or heavier. By using a balance scale there's 3 possible outcomes (left side is heavier; right side is heavier; same weight). This means that for your last (third) weighing you'll have to have reduced the problem down to 3 (or fewer) different possibilities. If there's 4 or more there's…

Exactly. Same kind of thinking gives you bounds on what can be done. For example, can you do 13 marbles in 3 weighings? 213 14 > 3^3, so definitely no.

Re: That time when I failed the Microsoft interview

#237
post #226
post #60

Earlier quoted context omitted.

In the initial state there's 24 (12 * 2) different possibilities: The marble you're looking for is one of 12 and it's either lighter or heavier. By using a balance scale there's 3 possible outcomes (left side is heavier; right side is heavier; same weight). This means that for your last (third) weighing you'll have to have reduced the problem down to 3 (or fewer) different possibilities. If there's 4 or more there's…

Now that you spell it out, I guess this just binary search. You need O(log n) weighings because each weighing splits the search space in half. So I was wrong it’s not an information theory question, it’s just comp sci algorithms. I got my college classes mixed up (it’s been 14years)

Not binary. Each weighing can give you left, equal, right. So a ternary tree, if you want.

Re: That time when I failed the Microsoft interview

#238
post #132

Once long ago when I interviewed at Apple I was asked the classic "fork in the road, two guys, one always tells the truth and one always lies" riddle, with complete earnestness as far as I could tell. Possibly the single worst interview question I've ever been asked. Of course I told the interviewer I'd heard it before and then gave the correct answer. In my case we just ended up chatting about previous experience in…

Here a few additional teasers, - How many golf balls fit into the plane - How many gas stations exist in country (or alternative version with city ) - How many turns do you have to go on a gum machine until colour comes out? Naturally they all evaluate properly the skills required for the job, and other professions get asked the same kind of stupid questions. Unless it is for a position I really, really want, or are…

Years ago, I read a book titled How Would You Move Mount Fuji? [0] about the cult of Fermi Questions [1]. These are questions where you're looking for an order of magnitude. The cult of Fermi Questions in Silicon Valley started with William Shockley [2] using them in interviews. Several of his smart dudes quit to start companies you may have heard of like Intel, AMD & Fairchild [3].

Notes:

0 - https://www.amazon.com/dp/0316778494

1 - https://en.wikipedia.org/wiki/Fermi_problem And not the question Where are they? https://en.wikipedia.org/wiki/Fermi_paradox Same guy. At the same Los Alamos.

2 - You know, the guy who got a Nobel Prize for inventing transistors. https://en.wikipedia.org/wiki/William_Shockley

3 - https://en.wikipedia.org/wiki/Traitorous_eight

Re: That time when I failed the Microsoft interview

#239

Once long ago when I interviewed at Apple I was asked the classic "fork in the road, two guys, one always tells the truth and one always lies" riddle, with complete earnestness as far as I could tell. Possibly the single worst interview question I've ever been asked. Of course I told the interviewer I'd heard it before and then gave the correct answer. In my case we just ended up chatting about previous experience in…

"I was asked the classic "fork in the road, two guys, one always tells the truth and one always lies" riddle"

To which I always reply "I just start beating the crap out of one at random - the reaction of the both victim and witness will tell me which is which."

Re: That time when I failed the Microsoft interview

#240

Life lesson learned for OP, when it comes to tech interviewing: (1) the riddles you already know you answer after some staged deliberation to pretend you are working it out from first principles using your genius brain (bonus points if you can work "first principles" into the conversation). (2) The riddles you don't know the answer to are the ones you say you already read in a book or online and repeat this until you…

I've seen candidates breeze through the basic version of a question they claim to never have seen when asked and then choke hard when the requirements are modified slightly. Honesty is the best policy, kids.
Post reply on HN