Poorly stated question, as it is ambiguous as to whether it is asking for the number of red balls that have been observed or the number that remain in the urn. Oh, "discarded" is spelled with a d. That much I can fix.
Agree with John D'Errico that the Problem Statement is ambiguous. For the record, based on case 5 of the Test Suite, it must be the _observed_ number of red balls that is to be computed.
Find the two most distant points
1647 Solvers
Back to basics 22 - Rotate a matrix
768 Solvers
540 Solvers
What is Sum Of all elements of Matrix
298 Solvers
Solving Quadratic Equations (Version 1)
429 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!