You are viewing a single comment's thread. Return to all comments →
My python3 solution
def beautifulDays(i, j, k): # Write your code here
b = 0 for x in (range(i,j+1)): r = int(str(x)[::-1]) if (abs(x-r)%k == 0): b +=1 return(b)
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Beautiful Days at the Movies
You are viewing a single comment's thread. Return to all comments →
My python3 solution
def beautifulDays(i, j, k): # Write your code here