Reasoning & Test-Time Compute · Problem 1 of 4
Implement self-consistency: sample CoTs, extract answers, return the majority vote.
Implement the function/class skeleton in the editor. Any correct approach is accepted.
from collections import Counter
def self_consistency(prompt, sample_cot, extract_answer, n=16):
raise NotImplementedErrorReady when you are
Submit your solution and a structured review appears here — verdict, score, and concrete feedback. Any correct approach passes.
Implement self-consistency: sample CoTs, extract answers, return the majority vote.
Implement the function/class skeleton in the editor. Any correct approach is accepted.