Generation

generate functionSun, 04 Dec 2022

polynomial time reduce an N-hard problem to a P-time problem

fn ptime_reduce<F: Fn()>(f: F) { f(); } fn n_hard() { println!("n_hard"); } fn main() { ptime_reduce(n_hard); }

Questions about programming?Chat with your personal AI assistant