I was thinking about task 2 in today’s #PerlWeeklyChallenge and after few false starts I found out this is essentially multiway number partitioning problem with k=4. I’ll probably go with greedy number partitioning algorithm and call it a day.
https://theweeklychallenge.org/blog/perl-weekly-challenge-296/
[#]programming #TIL #compsci
=> More informations about this toot | More toots from mirekdlugosz@fosstodon.org
text/gemini
This content has been proxied by September (ba2dc).