Skip to content

Instantly share code, notes, and snippets.

View KedarVichare's full-sized avatar

Kedar Vichare KedarVichare

View GitHub Profile
@KedarVichare
KedarVichare / polkadot_score.py
Created April 29, 2026 22:28
Score from art
def computePolkadotScore(ascii_art: str) -> int:
lines = ascii_art.split('\n')
pupils_count = 0
lips_start_x = -1
lips_end_x = -1
for line in lines:
if '/\\' in line and '()' in line:
pupils_count = line.count('()') * 2