Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Ghost Detect by wo.tomasz
import re
def recognize(signal: int) -> bool:
ds = re.split("0+", bin(signal)[2:])
return ds[0] == ds[1] == ds[2]
May 11, 2025
Comments: