java - How to approach probability type of programming challenge? -


You have given 17 cards from 52-card decks. On average, what is the longest straight flush in your hand?

A straight flush is a set of cards that are continuously and also of the same suit. 2 is low, Ace is high, and you can not wrap around. Do not solve this mathematical ... Guess about this program.

I am not able to think about the right approach to this type of question. Do I have to apply any algorithms?

This is an example called "Monte" after Carono Resort, Carlo "Program This idea is just a random The process is often to get angry and to see the statistics.

Actually, you should write a program that takes 17 cards from the deck and flush it for the longest time, Or 100,000) calls and take the average.

Comments

Popular posts from this blog

Out of index C/C++ -

algorithm - Graph cut with python: How to set up the graph correctly? -

objective c - how Set autolayout for multiple dynamic buttons and labells in iOS? -