Mid-Level
November 18, 2026

Spot the bug: Rust

One snippet. Find the bug, or prove there isn't one.

rust
1fn percentage(part: u32, total: u32) -> f64 {
2    let ratio = part / total;
3    ratio as f64 * 100.0
4}

Click the lines that carry the problem.

Your verdict

One attempt per day. The answer shows up right after.

Keep your streak

Create an account to keep your streak and track your progress.

Create an account