Probability of red tulips (at both ends of a row) - MATLAB Cody - MATLAB Central

Problem 44254. Probability of red tulips (at both ends of a row)

Difficulty:Rate

I planted tulip bulbs in a row on my flower bed. I thought that I had planted white tulips all. However, later, it turned out that two RED tulip bulbs had been mixed in the planted bulbs!

Input (x): Number of all bulbs

Output (y): The probability that RED tulips will bloom at BOTH ENDs of the row.

Solution Stats

75.0% Correct | 25.0% Incorrect
Last Solution submitted on Mar 05, 2025

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers58

Suggested Problems

More from this Author7

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page