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.
importFoundation// Complete the beautifulDays function below.funcbeautifulDays(i:Int,j:Int,k:Int)->Int{varcount=0forvalueini...j{varr=valuevarq=0whiler>0{q=q*10+r%10r/=10}abs(value-q)%k==0?count+=1:()}returncount}
Cookie support is required to access HackerRank
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 →
This was my solution in Swift