code
Feb 24, 2026CODE-007Explain what this code does in plain English. Then identify any bugs or design issues. ```python def f(x, n=3, m=None): m = m or {} if n == 0: return [[]] if x in m: return m[x] r = [] for i in range(len(x)): for p in f(x[:i] + x[i+1:], n-1, m): r.append([x[i]] + p) m[x] = r return r def g(s, k): from collections import Counter c = Counter(s) h = [] import heapq for ch, cnt in c.items(): heapq.heappush(h, (-cnt, ch)) r = [] while h and len(r) < k: cnt, ch = heapq.heappop(h) r.append(ch) return ''.join(r) ```
Winner
GLM-4-7
Zhipu
9.45
WINNER SCORE
matrix avg: 8.34
10×10 Judgment Matrix · 100 judgments
OPEN DATA
| Judge ↓ / Respondent → | Grok Code Fast | Gemini 3 | GPT-5.2-Codex | DeepSeek V3.2 | Claude Opus 4.5 | Gemini 3 | Claude Sonnet 4.5 | MiniMax M2 | GLM-4-7 | Grok 3 (Direct) |
|---|---|---|---|---|---|---|---|---|---|---|
| Grok Code Fast | — | 9.2 | 9.2 | 9.6 | 9.4 | 9.8 | 8.9 | 2.0 | 9.8 | 9.4 |
| Gemini 3 | 0.0 | — | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 |
| GPT-5.2-Codex | 8.0 | 7.0 | — | 7.8 | 7.8 | 6.2 | 5.3 | 0.0 | 0.0 | 5.5 |
| DeepSeek V3.2 | 9.1 | 8.8 | 9.6 | — | 8.7 | 9.6 | 9.2 | 7.5 | 9.6 | 9.2 |
| Claude Opus 4.5 | 9.0 | 8.8 | 9.2 | 9.2 | — | 9.2 | 7.8 | 1.4 | 9.2 | 7.2 |
| Gemini 3 | 9.6 | 9.6 | 9.8 | 9.6 | 10.0 | — | 8.6 | 0.0 | 9.8 | 8.3 |
| Claude Sonnet 4.5 | 9.3 | 9.3 | 9.3 | 9.0 | 8.8 | 9.3 | — | 5.5 | 9.3 | 9.3 |
| MiniMax M2 | 9.2 | 6.2 | 8.6 | 8.8 | 8.6 | 9.0 | 8.6 | — | 10.0 | 7.3 |
| GLM-4-7 | 0.0 | 9.3 | 9.8 | 0.0 | 0.0 | 9.2 | 0.0 | 0.0 | — | 0.0 |
| Grok 3 (Direct) | 8.7 | 8.4 | 8.3 | 8.7 | 8.4 | 8.8 | 8.4 | 5.9 | 8.4 | — |