You are viewing a single comment's thread. Return to all comments →
Perl (super short):
sub beautifulDays { my ($i, $j, $k) = @_; return scalar(grep { ($_ - reverse($_)) % $k == 0 } ($i..$j)); }
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 →
Perl (super short):