One hidden bug. Click the line you suspect. See your time and where the community guessed.
// Split items into `groupCount` round-robin buckets.
function partition<T>(items: T[], groupCount: number): T[][] {const buckets: T[][] = Array(groupCount).fill([]);
items.forEach((item, i) => {buckets[i % groupCount].push(item);
});
return buckets;
}
const result = partition(["a", "b", "c", "d"], 2);
console.log(result[0]); // expected: ["a", "c"]
console.log(result[1]); // expected: ["b", "d"]
One script tag drops a playable puzzle into a post or your docs. The reader solves it where they are; the share card sends them back here.
<script src="http://localhost:5173/embed.js" data-puzzle-id="1" data-theme="auto" async></script>
I read code review like other people read crosswords. So I built one bug, one shot, and shipped it in public - no funding, no roadmap deck, just a puzzle a week and the numbers behind it.
Building OneBug in public.
No past bugs yet - this week's is the first.