Let's take some regular house with a man, which has to go to the toilet every n
minutes, requiring the seat to be up, and a woman, which has to do it every m
minutes, requiring a seat to be down. Is there a possibility to create a O(1)
algorithm which will output the exact number of toilet seat movements for a given period of X
minutes? There are two different additional inputs:
1. The man always leaves the seat up after a visit.
2. The man always puts the seat down after a visit.
Conclusion: in the real life (which involves n
being much more than m
, with X->infinity), it is proven that there is no difference in a number of seat movements.
But if a man does it more often, then a woman, it will prolong the seat life if he will just leave the seat up, but is this case one of them (or both) should probably see a doctor.
Now I know what is the best for the seat itself, but which person makes more movements - is another question (which should not be asked anyways).