Answers for "beautiful days at the movies hackerrank solution in javascript"

0

beautiful days at the movies hackerrank solution in javascript

// 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;
}
Posted by: Guest on January-04-2022

Code answers related to "beautiful days at the movies hackerrank solution in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language