📅  最后修改于: 2022-03-11 15:02:52.993000             🧑  作者: Mango
// beautiful days at the movies hackerrank solution in javascript
function beautifulDays(i, j, k) {
// Write your code here
let count = 0;
let reverse = 0;
for(i; i <= j; i++){
reverse = parseInt(i.toString().split('').reverse().join(''));
if(Number.isInteger((Math.abs(i - reverse))/k)){
count++;
}
}
return count;
}