R40 · isPalindrome (ignore case & non-alphanumerics)
Every answer below carries the name of the model that wrote it. Blind refers to the scoring: the review was done without knowing which model produced which answer — the published result names them.
1 of the 11 local models delivered nothing through our test harness in this round — for reasons that lie with our setup, not with the models. Those cards are marked DNF like any other, but they are not evidence about those models — the reason is noted on the card itself.
A frontier reference answered the same task (Claude Opus 5) — outside the field and deliberately unscored, further down the page.
Show task
Schreibe eine JavaScript-Funktion isPalindrome(s), die true zurückgibt, wenn s ein Palindrom ist — Groß/Kleinschreibung ignorieren und alle Nicht-Alphanumerischen Zeichen ignorieren. Gib NUR die Funktion aus, keine Erklärung, kein Markdown.
The answers
const isPalindrome = (s) => {
// Clean the string by converting to lowercase and keeping only alphanumeric characters
const cleanedString = s.toLowerCase().replace(/[^a-z0-9]/g, '');
let left = 0;
let right = cleanedString.length - 1;
while (left < right) {
if (cleanedString[left] !== cleanedString[right]) {
return false;
}
left++;
right--;
}
return true;
};function isPalindrome(s) {
const cleaned = s.toLowerCase().replace(/[^a-z0-9]/g, '');
return cleaned === cleaned.split('').reverse().join('');
}function isPalindrome(s) {
const cleaned = s.toLowerCase().replace(/[^a-z0-9]/g, '');
let left = 0;
let right = cleaned.length - 1;
while (left < right) {
if (cleaned[left] !== cleaned[right]) {
return false;
}
left++;
right--;
}
return true;
}function isPalindrome(s) {
const cleaned = s.replace(/[^a-zA-Z0-9]/g, '').toLowerCase();
return cleaned === cleaned.split('').reverse().join('');
}```javascript
function isPalindrome(s) {
const cleaned = s.replace(/[^A-Za-z0-9]/g, '').toLowerCase();
const reversed = cleaned.split('').reverse().join('');
return cleaned === reversed;
}
```function isPalindrome(s) {
const cleanedS = s.toLowerCase().replace(/[^a-z0-9]/g, '');
let left = 0;
let right = cleanedS.length - 1;
while (left < right) {
if (cleanedS[left] !== cleanedS[right]) {
return false;
}
left++;
right--;
}
return true;
}```javascript
function isPalindrome(s) {
let cleaned = '';
for (let i of s) {
if (i.match(/^[a-zA-Z0-9]$/)) {
cleaned += i.toLowerCase();
}
}
return cleaned === cleaned.split('').reverse().join('');
}
```function isPalindrome(s) {
s = s.replace(/[^a-zA-Z0-9]/g, '').toLowerCase();
return s === s.split('').reverse().join('');
}function isPalindrome(s) {
const cleaned = s.toLowerCase().replace(/[^a-z0-9]/g, '');
return cleaned === cleaned.split('').reverse().join('');
}function isPalindrome(s) {
const processed = s.replace(/[^a-zA-Z0-9]/g, '').toLowerCase();
return processed === processed.split('').reverse().join('');
}function isPalindrome(s) {
const normalized = String(s).toLowerCase().replace(/[^a-z0-9]/g, "");
let left = 0;
let right = normalized.length - 1;
while (left < right) {
if (normalized[left] !== normalized[right]) return false;
left++;
right--;
}
return true;
}function isPalindrome(s) {
const cleaned = s.toLowerCase().replace(/[^a-z0-9]/g, '');
return cleaned === cleaned.split('').reverse().join('');
}function isPalindrome(s) {
const t = s.toLowerCase().replace(/[^a-z0-9]/g, '');
return t === t.split('').reverse().join('');
}function isPalindrome(s) {
const cleaned = s.toLowerCase().replace(/[^a-z0-9]/g, '');
return cleaned === cleaned.split('').reverse().join('');
}Normalisieren (toLowerCase + [^a-z0-9] entfernen) und mit umgedrehter Zeichenkette vergleichen. Muss 'A man, a plan, a canal: Panama' als true erkennen.
Results at a glance— every model in this round with score, response time and status.
Who wrote what
| Model | Blind score | Latency | Status |
|---|---|---|---|
| qwen3:8b | — | — | harness |
| qwen3.5:9b | 8.0 | 11.5 s | OK |
| gemma4:26b | 10.0 | 127.0 s | OK |
| qwen3-coder:30b | 8.0 | 11.5 s | OK |
| deepseek-r1:14b | — | 35.5 s | OK |
| mistral-small:24b | — | 31.0 s | OK |
| qwen3:14b | 8.0 | 11.5 s | OK |
| llama3.1:8b | — | 23.5 s | OK |
| command-r:35b | — | 89.3 s | OK |
| deepseek-r1:32b | — | 70.8 s | OK |
| qwq:32b | — | 89.4 s | OK |
4 of 4 answering local models matched the gold answer (blind score ≥ 8): gemma4:26b, qwen3-coder:30b, qwen3:14b, qwen3.5:9b.
Frontier reference — outside the blind field
These models answered the identical prompt outside the blind field. They are deliberately not scored and not part of the blind comparison — they are there so you can see where a frontier model lands on the same task.
```javascript
function isPalindrome(s) {
const cleaned = String(s).toLowerCase().replace(/[^a-z0-9]/g, '');
return cleaned === cleaned.split('').reverse().join('');
}
```