> For the complete documentation index, see [llms.txt](https://maksimdan.gitbook.io/interview-practice-problems/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://maksimdan.gitbook.io/interview-practice-problems/coding_practice_questions/math_and_puzzles/basketball.md).

# Basketball

**6.2 Basketball:** You have a basketball hoop and someone says that you can play one of two games.

Game 1: You get one shot to make the hoop.

Game 2: You get three shots and you have to make two of three shots.

If p is the probability of making a particular shot, for which values of p should you pick one game or the other?

Assuming making a shot is .5, which I will denote as 1. We can have 1 0 0, 0 1 0, or 0 0 1. Which given P(G2) = 3(.5)^3, while P(G1) = .5. So chose G1.
