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.
Dip for hill roll is faster