Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Ask HN: How to calculate if a box will fit through a hallway with a 90 degree turn. Parent comment
Here let us take h=66 since it will fit only that way in the corridor.
x = 31, y = 32
b = 22, l = 57, h =66
So (sqrt(x^2+y^2) - l/2) = 44.55 - 28.5 = 16.05
Now 16.05 is less than b(=22), so the box will not fit through.
There are no comments on this comment yet.
Here let us take h=66 since it will fit only that way in the corridor.
x = 31, y = 32
b = 22, l = 57, h =66
So (sqrt(x^2+y^2) - l/2) = 44.55 - 28.5 = 16.05
Now 16.05 is less than b(=22), so the box will not fit through.