Sollicitatievraag bij ServiceNow

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.

Antwoord op sollicitatievraag

Anoniem

8 feb 2019

Call the function twice and OR the result and return it.