[HN Gopher] How to arrange any number of stars on the U.S. flag ...
___________________________________________________________________
How to arrange any number of stars on the U.S. flag (2016)
Author : jbm
Score : 9 points
Date : 2022-11-30 20:05 UTC (2 hours ago)
(HTM) web link (www.crwflags.com)
(TXT) w3m dump (www.crwflags.com)
| 082349872349872 wrote:
| > _I limited the iterations to values of w between h and 5h
| (which still allows for really too oblong arrangements for higher
| values...) and listed only totals up to 200 stars, allowing for
| really aggressive Manifest Destiny scenarios and /or
| Balkanization within the current borders._
|
| Unfortunately if we tried to achieve senatorial parity by giving
| all states an equivalent population to Wyoming, ~664 states would
| be necessary. Fortunately the author gives recurrence relations,
| so even unlisted numbers of stars are, as per the title,
| arrangeable.
| w-m wrote:
| Here's an advent of code puzzle for ya: build a page with four
| giant renders of the flag (q[?], e[?], p[?] and r[?]), live
| updated by a slider that goes from 1 to 200. If there's multiple
| solutions for a certain pattern given a number of stars, choose
| the one that leaves the least amount of empty space around the
| stars.
|
| :)
___________________________________________________________________
(page generated 2022-11-30 23:02 UTC)