Solución
solution.tsTypeScript
def is_valid_binary(s: str) -> bool:
bin = "0"
bun = "1"
for i in s:
if bin in s or bun in s:
if "234" not in s and "a" not in s:
return True
return False0respuestas