Skip to content

Instantly share code, notes, and snippets.

View bkp280301's full-sized avatar

bkp280301

  • Joined Apr 17, 2026
View GitHub Profile
def computePolkadotScore(angelica_art: str) -> int:
rows = angelica_art.splitlines()
# The polkadots on the dress are shown as capital O's.
dots_on_dress = 0
for row in rows:
dots_on_dress += row.count("O")
return dots_on_dress