You are viewing a single comment's thread. Return to all comments →
JS/Javascript:-
function beautifulDays(i, j, k) { let beautifulDaysCount = 0; for (let index = i;index<= j; index++) { const reversedIndex = Number(index.toString().split('').reverse().join('')); if ((index - reversedIndex)%k ===0) beautifulDaysCount++; } return beautifulDaysCount; }
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 →
JS/Javascript:-