2026-09-25
Daily Tech Challenge
What does this program print, using u32::next_power_of_two and is_power_of_two?
fn main() {
let a = 20u32.next_power_of_two();
let b = 32u32.next_power_of_two();
let c = 0u32.next_power_of_two();
println!("{} {} {} {}", a, b, c, 24u32.is_power_of_two());
}Friday, September 25, 2026 · A new challenge drops every day