Measure 45 minutes with two burning ropes
Asked at Jane Street, Optiver
You have two ropes and a lighter. Each rope takes exactly 60 minutes to burn from one end to the other. However, the ropes are non-uniform: they may burn faster in some places and slower in others, so a rope that is half burned has not necessarily taken 30 minutes.
Using only these two ropes and the lighter, how do you measure exactly 45 minutes?
Show a hint
What happens to the total burn time if you light a rope from both ends at once?
Your answer
This one is open-ended. Work it through, then check your reasoning against the full solution.