Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Ghost Detect by Magu
import itertools
def recognize(signal: int) -> bool:
return len(set([tuple(g) for k, g in itertools.groupby(list(bin(signal)[2:])) if int(k)])) == 1
Nov. 27, 2024
Comments: