Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Timeline for When is my coworker's next birthday?

Current License: CC BY-SA 4.0

6 events
when toggle format what by license comment
Jun 13 at 14:10 comment added Themoonisacheese i hadn't seen how far you golfed this since the first submission, very nice golf!
Jun 3 at 0:29 history edited Value Ink CC BY-SA 4.0
added 279 characters in body
Jun 2 at 7:37 comment added Value Ink @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!
Jun 2 at 7:30 history edited Value Ink CC BY-SA 4.0
added 400 characters in body
Jun 1 at 4:05 comment added emanresu A 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
May 31 at 8:51 history answered Value Ink CC BY-SA 4.0

AltStyle によって変換されたページ (->オリジナル) /