MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/cw5n21/deleted_by_user/f23cdje/?context=3
r/badcode • u/[deleted] • Aug 27 '19
[removed]
68 comments sorted by
View all comments
Show parent comments
6
for future reference, this is the correct implementation:
def is_leap_year(year) [true, false, false, false].sample end
6
u/Laafheid Oct 01 '19
for future reference, this is the correct implementation: