You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
-
\$\begingroup\$ Note that the longest possible duration in the linked Puzzling question is 4381 days ≈ 12 years due to leap days not occuring on years that are multiples of 100. 5e3 should be enough \$\endgroup\$emanresu A– emanresu A2025年06月01日 04:05:08 +00:00Commented Jun 1 at 4:05
-
\$\begingroup\$ @emanresuA my solution was only grabbing 3000 dates because it would extract the month and day and use that in another loop that calculated year separately, which is why it was returning the correct answer even in that case. The only reason I did that was because I thought it would save bytes over disqualifying dates that already had a valid weekday in an earlier year. However, your comment inspired me to look into the Ruby spec and find a way to do just that in way fewer bytes. Thanks! \$\endgroup\$Value Ink– Value Ink2025年06月02日 07:37:29 +00:00Commented Jun 2 at 7:37
-
\$\begingroup\$ i hadn't seen how far you golfed this since the first submission, very nice golf! \$\endgroup\$Themoonisacheese– Themoonisacheese2025年06月13日 14:10:30 +00:00Commented Jun 13 at 14:10