News for hackers. Stuff that matters.
Re:That time when I failed the Microsoft interview by lostlogin on Tuesday August 04, 2026 @04:53AM (#49165944)
I have no idea and want the answers:

Boat + bowling ball = level stays the same?

Ball roll = the constant gradient is quickest?

Re:That time when I failed the Microsoft interview by AlecBG on Tuesday August 04, 2026 @04:58AM (#49165979)
First one water is lower. Ball is more dense than water, in boat displaces its weight in water, in water displaces it's volume

Dip for hill roll is faster

Re:That time when I failed the Microsoft interview by CodesInChaos on Tuesday August 04, 2026 @05:03AM (#49166025)
A dip increases the speed (decreasing travel time), but also the distance to travel (increasing travel time). Which of those effects dominates depends on the shape of the dip.

The hill decreases speed and increases distance, so it's always slower than the straight line.

Re:That time when I failed the Microsoft interview by modeless on Tuesday August 04, 2026 @06:13AM (#49166492)
Most things that can fairly be described as a "small dip" should decrease travel time. When I was presented with the problem it came with illustrations to clarify. Surprisingly hard to make it watertight with text alone.
Re:That time when I failed the Microsoft interview by ninkendo on Tuesday August 04, 2026 @07:37AM (#49167175)
First one depends on the bowling ball. Most alleys have balls ranging from 7lb to 16lb, all the same volume, and the crossover point where they’d sink is 11.6lb.

If it was a floating bowling ball, the lake water level would stay the same when you toss it from a boat. If it were a sinking one, it would decrease.

Re:That time when I failed the Microsoft interview by quietbritishjim on Tuesday August 04, 2026 @09:26AM (#49168673)
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.
Re:That time when I failed the Microsoft interview by fenomas on Tuesday August 04, 2026 @10:56AM (#49169874)
Bowling balls aren't hollow, they're solid spheres with finger holes drilled in. The varying weights comes from having weighted cores inside.
Re:That time when I failed the Microsoft interview by quietbritishjim on Tuesday August 04, 2026 @11:14AM (#49170131)
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 by kontain on Tuesday August 04, 2026 @09:49AM (#49168978)
Also if the lake is a mile deep it would pressure the ball more than the air do.
Re:That time when I failed the Microsoft interview by modeless on Tuesday August 04, 2026 @01:21PM (#49171954)
That's why the problem statement specifies that the bowling ball sinks.
Re:That time when I failed the Microsoft interview by ninkendo on Wednesday August 05, 2026 @08:42AM (#49182047)
Good point! I skimmed over that part, you’re right.
Re:That time when I failed the Microsoft interview by robocat on Tuesday August 04, 2026 @05:26AM (#49166169)
Next bail 10 litres of water from the lake into the open-topped boat.

What are the effects of the 10 litres of air displaced from within the boat?

Re:That time when I failed the Microsoft interview by b3lvedere on Tuesday August 04, 2026 @07:13AM (#49166951)
Unless there was a butterfly in that part of the air .. not much.
Re:That time when I failed the Microsoft interview by RealityVoid on Tuesday August 04, 2026 @06:21AM (#49166544)
Lake level stays the same.
Re:That time when I failed the Microsoft interview by IsTom on Tuesday August 04, 2026 @09:14AM (#49168497)
But won't your boat displace more water by lowering a bit if you've got additional mass on board?
Re:That time when I failed the Microsoft interview by CodesInChaos on Tuesday August 04, 2026 @12:27PM (#49171147)
That's what they meant by "in boat displaces its weight in water". While it's in the boat, the amount of water it displaces weighs as much as the bowling ball. While it's in the water, it displaces the volume of the bowling ball, and its weight doesn't matter. The ball is denser than water (since it sinks), so the amount of water it displaces based on its weight is bigger than the amount of water it based on its volume.
Re:That time when I failed the Microsoft interview by IsTom on Tuesday August 04, 2026 @02:45PM (#49173080)
Ah, that makes sense, thanks.
Re:That time when I failed the Microsoft interview by vdfs on Tuesday August 04, 2026 @01:56PM (#49172423)
> Ball is more dense than water

Wouldn't that mean the water level will raise a bit because: displaced weight > displaced volume?

Re:That time when I failed the Microsoft interview by a-french-anon on Tuesday August 04, 2026 @05:49AM (#49166312)
I find it very easy to solve some of these physics questions by thinking about a degenerate version of it instead, with exaggerated parameters (since these physics phenomenons are described by continuous/monotonic functions).

So for the bowling ball, I replace it with an imaginary marble weighing 1 ton and the answer is now self-evident.

Re:That time when I failed the Microsoft interview by fetzu on Tuesday August 04, 2026 @07:00AM (#49166870)
That’s exactly the path I would have gone, ask clarifying question to confuse the interviewers: - Is my boat actually floating in the lake? - Is the lake filled with water? - If yes, what is the temperature gradient of that water from top to bottom? - How deep is the lake at the spot the ball is dropped? - What is the current time and phase of the moon, and what are the exact coordinates of the ball drop? - Are we doing this during some « end of the world gravitational collapse » event?

This would show them three things (which they did were not trying to find out, or maybe): 1. I think these questions are stupid. 2. I know that clear requirements and edge-cases are important 3. I’m an asshole and possibly not fun at parties

Re:That time when I failed the Microsoft interview by kjellsbells on Tuesday August 04, 2026 @08:44AM (#49168028)
> I’m an asshole and possibly not fun at parties

I got this vibe at AWS, interviewing in 2020. They asked me to design a stock price tracking webapp. I started asking questions and sketching things out and at each question (fairly basic ones, too, like, how many users are we supporting, how frequently do they request updates, and how timely does the data need to be). Seemed reasonable to me but I think my line of questions annoyed them because they said, "just design the app!" Maybe they thought I was stalling? Hmm, ok, but it'll fall over on day 2. I turned down the offer.

Re:That time when I failed the Microsoft interview by throwaway2037 on Tuesday August 04, 2026 @10:57AM (#49169900)
This is starting to sound like the old joke about a coconut laden swallow from (the film) The Holy Grail. I would pay to see the interviewer sweat as you ask the follow-up questions! You sound like fun at a party!
Re:That time when I failed the Microsoft interview by inigyou on Tuesday August 04, 2026 @06:05AM (#49166430)
You drop a microscopic black hole off a boat into the lake. Does the water level increase or decrease?
Re:That time when I failed the Microsoft interview by RealityVoid on Tuesday August 04, 2026 @06:22AM (#49166554)
The water level decreases, along with the shore and anything with it falling within the event horizon. Any other apocalyptic brain teasers?
Re:That time when I failed the Microsoft interview by anonym29 on Tuesday August 04, 2026 @06:39AM (#49166689)
You drop a bowling ball off a space boat into a black hole. Has the amount of mass inside the universe increased, decreased, or stayed the same, ignoring the effects of all other changes?
Re:That time when I failed the Microsoft interview by RealityVoid on Tuesday August 04, 2026 @07:05AM (#49166898)
The amount of mass inside the universe has stayed the same, it just moved from the boat into the black hole.

You're really bored at work one day so to entertain yourself you create 1kg of antimatter along with 1kg of matter. Has the mass in the universe increased or stayed the same?

Re:That time when I failed the Microsoft interview by kontain on Tuesday August 04, 2026 @09:54AM (#49169040)
The mass of the observable universe has probably changed a lot by the time the bowling ball hits the bottom.
Re:That time when I failed the Microsoft interview by TheOtherHobbes on Tuesday August 04, 2026 @07:23AM (#49167032)
You drop a black hole the size of a bowling ball into a frontier AI startup.

At what point does NVIDIA give you $200bn?

Re:That time when I failed the Microsoft interview by inigyou on Tuesday August 04, 2026 @08:09AM (#49167542)
At the point nvidia's office becomes part of the accretion disk.
Re:That time when I failed the Microsoft interview by M95D on Tuesday August 04, 2026 @09:45AM (#49168926)
I'm not sure what other effects I should ignore, but the mass would increase. The ball gains relativistic mass as it accelerates towards the black hole.

PS: Assuming the boat isn't falling too (it's still in orbit), dropping the ball does nothing. You need to decelerate it (reduce it's orbital speed) for it to fall into the black hole.

Re:That time when I failed the Microsoft interview by Paul_Clayton on Tuesday August 04, 2026 @08:53AM (#49168187)
I think a microscopic black hole would evaporate very quickly from Hawking radiation, so the result might be more bang than suck.
Re:That time when I failed the Microsoft interview by RealityVoid on Tuesday August 04, 2026 @09:22AM (#49168605)
Sure, but the mass is not specified so I just assumed the closest one to cosmic horror.
Re:That time when I failed the Microsoft interview by inigyou on Tuesday August 04, 2026 @10:39AM (#49169652)
You invert the phase of the Higgs field within a basketball. What happens?
Re:That time when I failed the Microsoft interview by kot_manul on Tuesday August 04, 2026 @12:26PM (#49171128)
The universe becomes suddenly VERY different, while a ghostly rendition of the Harlem Globetrotters theme whistles eerily in the background?

(I actually don't know the answer to this)

Re:That time when I failed the Microsoft interview by 12_throw_away on Tuesday August 04, 2026 @04:56PM (#49175034)
I believe this would nucleate a cosmic string (and annihilate everything in its vicinity obviously)
Re:That time when I failed the Microsoft interview by ThrowawayR2 on Tuesday August 04, 2026 @11:47AM (#49170606)
The intake rate of a microscopic black hole is too small to measurably absorb much matter before it falls through to the bottom of the lake until it reaches the center of the planet and oscillates there.

The more pressing thing is that every thing around the lake is irradiated by the evaporation of the microscopic black hole, which supposedly emits quite a lot of energy, as it falls through the bottom.

Re:That time when I failed the Microsoft interview by RealityVoid on Tuesday August 04, 2026 @04:26PM (#49174570)
According to wikipedia, microscopic is considered up to 1 micron. [1] According to the Schwartzchild formula [2] r=(2Gm)/(c^2) so if I take the largest black hole the definition would allow, the mass would be about 10% of the moon. You'd feel 1G at about 60km distance because of it. But indeed, it would fall and take about 20 minutes to reach the core of the planet, while displacing a whooping 1gram of matter. Kind of funny how wierd this whole thing is.

[1] https://en.wikipedia.org/wiki/Microscopic_scale

[2] https://en.wikipedia.org/wiki/Schwarzschild_radius

Re:That time when I failed the Microsoft interview by pbhjpbhj on Tuesday August 04, 2026 @06:27AM (#49166612)
Will a one ton marble embed into the lake bed?
Re:That time when I failed the Microsoft interview by M95D on Tuesday August 04, 2026 @09:46AM (#49168937)
Why does it matter?
Re:That time when I failed the Microsoft interview by pbhjpbhj on Wednesday August 05, 2026 @03:18PM (#49187604)
Clearly it doesn't, but I'm curious.

Why do you care whether I do or not?

Re:That time when I failed the Microsoft interview by cucumber3732842 on Tuesday August 04, 2026 @06:07AM (#49166443)
>Ball roll = the constant gradient is quickest?

Steep then flat one because it gets up to speed fastest.

It's a classic "annoy people who've forgotten that newtonian physics is all integrals" problem. Graph the velocity. Look at area under graph.

Re:That time when I failed the Microsoft interview by FabHK on Tuesday August 04, 2026 @11:04AM (#49169990)
Boat + bowling ball => level drops.

1) Imagine pushing the boat down into the lake, displacing water. The level would go up.

2) Imagine the ball instead of being in the boat, is attached under the boat by a rope. Same thing. (Imagine it magically moving through the bottom of the boat - it has no impact on the boat or water level).

3) Imagine you cut the rope. The ball will fall, and the boat will bob up. Water level goes down.

Re:That time when I failed the Microsoft interview by jasmcole on Tuesday August 04, 2026 @11:15AM (#49170144)
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