Skip to content

Instantly share code, notes, and snippets.

@rithuvr
rithuvr / polkadot-score.js
Created April 30, 2026 00:22
Polkadot coding challenge solution
function computePolkadotScore(asciiArt) {
const lines = asciiArt.split("\n");
let lipStartX = null;
let lipEndX = null;
let pupilCount = 0;
for (const line of lines) {
const chars = [...line];