Skip to content

Instantly share code, notes, and snippets.

View Swetha-Rachakonda's full-sized avatar

Swetha-Rachakonda

View GitHub Profile
def computePolkadotScore(ascii_art: str) -> int:
lines = ascii_art.split("\n")
lipsStart = -1
lipsEnd = -1
for line in lines:
if "()" in line or ("(" in line and ")" in line):
candStart = line.index("(")
candEnd = line.rindex(")")
if candEnd > candStart: