Skip to content

Instantly share code, notes, and snippets.

View TheDevCarnage's full-sized avatar

Rishabh Shukla TheDevCarnage

View GitHub Profile
@TheDevCarnage
TheDevCarnage / solution.js
Created April 30, 2026 07:20
solution to the problem
function computePolkadotScore(asciiArt) {
const lines = asciiArt.split('\n');
const forbidden = new Set(["'", "`", ",", "-", " "]);
let lipsStartX = -1;
let lipsEndX = -1;
for (const line of lines) {
let searchFrom = 0;
while (searchFrom < line.length) {