You are viewing a single comment's thread. Return to all comments →
one-liner in python:
def squares(a, b): return (int(math.sqrt(b))-int(math.sqrt(a))+1) if (math.sqrt(a)==int(math.sqrt(a))) else int(math.sqrt(b))-int(math.sqrt(a))
Seems like cookies are disabled on this browser, please enable them to open this website
Sherlock and Squares
You are viewing a single comment's thread. Return to all comments →
one-liner in python: