Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Still ", as well as given the door which includes the price." in the end in JS version
Highly recomend adding something to the description like: "You are going to write a program that demonstrates the Monty Hall principle"
or something along those lines. Not sure if its because I was tired but it took me a good bit just to figure out from the description what the purpose of the programm was.
Its a really cool puzzle though! love how some of the math riddle/arguments can be resolved by simple program demonstrations like this one.
Java (at least) lacks random tests that will fail this partially hardcoded solution.
Typo:
price
should beprize
This comment is hidden because it contains spoiler information about the solution