We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Beautiful Days at the Movies
Beautiful Days at the Movies
Sort by
recency
|
1738 Discussions
|
Please Login in order to post a comment
Here is my c# solution, i didnt use array to reverse
Here is my c++ solution, you can watch the explanation here : https://youtu.be/6rYwcW6BYH4
or
** Python solution in 1 line **
def beautifulDays(i, j, k): return sum([abs(num - int(str(num)[::-1]))%k==0 for num in range(i, j+1)])
My Entry: