3 ms·
That's on the site too: https://www.programmingalgorithms.com/algorithm/week-of-year https://www.programmingalgorithms.com/algorithm/week-of-year Seems a bit o
by mark-r 11y ago
That's on the site too: https://www.programmingalgorithms.com/algorithm/week-of-year https://www.programmingalgorithms.com/algorithm/week-of-year
Seems a bit over complicated though, I wonder if it could be simplified the way the day-of-week calculation is simplified.