← CarWale questions

Design f4x() from f2x()

Filed under CarWale

The question

Given a function f2x() that generates 0 and 1 with equal probability, design f4x() to generate 0, 1, 2, 3 with equal probability.

No write-up yet. Related questions below have one.

Related CarWale questions

Collected from public candidate posts and coding forums. Updated Nov 2026.