One question for the mixed-up oracle
Asked at Jane Street, Optiver
You stand before an oracle who answers only yes/no questions. The oracle is one of two fixed types: an honest one that always answers truthfully, or a deceiver that always answers falsely. You do not know which type you are facing.
You get to ask exactly one yes/no question, and you want to find out whether it will rain tomorrow.
What single question guarantees you learn the truth about tomorrow's rain, whichever type the oracle is?
Your answer
This one is open-ended. Work it through, then check your reasoning against the full solution.