gpt-3.5-turbo-0613· OpenAI
Arena Human Preference 55K
Write a Rust function to compute the Fibonnaci sequence. Respond with only the code…
- User
Write a Rust function to compute the Fibonnaci sequence. Respond with only the code block and nothing else.
- Assistantrust
fn fibonacci(n: u32) -> u32 { match n { 0 => 0, 1 => 1, _ => fibonacci(n - 1) + fibonacci(n - 2), } } - User
Rewrite the function recursively with memoization.
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.