A magician (Yes, that's you) has 10 cards, say labelled 0 to 9. Now, the magician's assistant and the magician perform a magic trick:
- The magician turns around (so he can't see the cards)
- A volunteer from the crowd comes up and arranges the ten cards in any order they want
- The assistant now flips over four cards without changing the order, so they are now facedown (now we have four facedown and six faceup cards)
- Now the magician turns around and works out what each of the facedown cards is
The audience applauds!
So the question is how did the magician (you) do it?
Of course, you talked to your assistant beforehand and decided on a strategy - what is the strategy?
I'm not 100% sure it's possible, although I am pretty confident (90%) it is. The best I've got has a >50% (not sure of the exact amount) chance of succeeding, which may even be 100% although I haven't checked.