You are viewing a single comment's thread. Return to all comments →
Python Solution
def beautifulDays(i, j, k): beautiful_days = 0 for n in range(i,j+1): if abs(n - int(str(n)[::-1])) % k == 0 : beautiful_days = beautiful_days + 1 return beautiful_days
Seems like cookies are disabled on this browser, please enable them to open this website
Beautiful Days at the Movies
You are viewing a single comment's thread. Return to all comments →
Python Solution