On a table in a completely dark room lies a deck of 52 cards. Ten of them are turned upside down and scattered around the deck. You can't distinguish them by touch, you can't turn on the light, you can't take the cards out of the room.
The task is to divide the deck into two parts so that each has an equal number of face down cards.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Have some DCs introduced charging for their employees' posts on MQL4/5 forums?
Otherwise it's hard to understand this urge to flood...
;)
Calculations
The task is to divide the deck into two parts so that each has an equal number of face down cards.
I think the answer is obvious - just divide the deck in half.
This is of course assuming that the 10 wrong cards are evenly shuffled in the deck.
I think the answer is obvious - just divide the deck in half.
This is of course assuming that the 10 wrong cards are evenly shuffled in the deck.
then only by some kind of combining algorithm to shuffle the deck evenly.
then only by some kind of combining algorithm to shuffle the deck evenly.
Quite simple, but playing with such a deck would be problematic :)