Conversion rate uplift

Write codeEasy10 minMeta and Airbnb style

Your task

The experiment readout shows how many basis points of conversion the variant gained (or lost) over control. Compute each arm's conversion rate in basis points as floor(10000 * conversions / visitors), then return variant_bps - control_bps. The difference may be negative. Both visitor counts are at least 1. Example: control converted 40 of 1000 visitors (400 bps) and the variant 55 of 1000 (550 bps), so return 150.

Examples

uplift_bps(control_conv: int, control_visitors: int, variant_conv: int, variant_visitors: int) -> int
Example 1
Inputuplift_bps(40, 1000, 55, 1000)
Output150