An urn contains an unknown number of white and black balls (but more than one). You extract two balls from the urn. If they are of the same color, you put a black ball back into the urn, otherwise you put a white ball back into the urn. Under what conditions will the last ball in the urn be black?

Urn Solution

PHP Warning

lib/DbaDatabase.php:154: Warning: dba_optimize() [<a href='function.dba-optimize'>function.dba-optimize</a>]: You cannot perform a modification to a database without proper access

lib/DbaDatabase.php:134: Warning: dba_replace() [<a href='function.dba-replace'>function.dba-replace</a>]: You cannot perform a modification to a database without proper access