Prompt
Temperature: 0.75
Temperature: 0.75
Temperature: 0.75
Task description
Learn the time complexity. You can try with this code o(n): fn x(target: i32) -> bool { let nums = (0..1000000).collect::<Vec<i32>>(); for n in nums { if n == target { return true; } } return false; }