Reasoning & Test-Time Compute · Problem 2 of 4
Implement best-of- selection given a reward/verifier over sampled completions.
Implement the function/class skeleton in the editor. Any correct approach is accepted.
def best_of_n(prompt, sample_fn, reward_fn, n=8):
raise NotImplementedErrorReady when you are
Submit your solution and a structured review appears here — verdict, score, and concrete feedback. Any correct approach passes.
Implement best-of- selection given a reward/verifier over sampled completions.
Implement the function/class skeleton in the editor. Any correct approach is accepted.