Chapter 142 / 4
Reasoning & Test-Time Compute
Implement best-of- selection given a reward/verifier over sampled completions
Medium
Target interface
best_of_n(prompt, sample_fn, reward_fn, n=8)Complete the starter code in the editor. Any correct approach is accepted.
Hints0 / 2
Reference solution
Your own code stays in the editor.