Given a function which will return 1 or 0 with equal probability, write another function using the first function which returns 0 with 25% and 1 with 75% probability.
Antwort im Vorstellungsgespräch
Anonym
8. Feb. 2019
Call the function twice and OR the result and return it.