Rust
fn guess_blue(blue_start: u32, red_start: u32, blue_pulled: u32, red_pulled: u32) -> f32 { let blue = (blue_start - blue_pulled) as f32; let red = (red_start - red_pulled) as f32; blue / (blue + red) }
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.
re: Daily Coding Puzzles - Nov 4th - Nov 9th VIEW POST
TOP OF THREAD FULL DISCUSSIONRust