From b94b26243026b437a962ec13e6d811d0952f3ea5 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Thu, 30 Dec 2021 21:58:08 -0500 Subject: Add AoC individual problem completion chart --- community/aoc.md | 41 +++++++++++++++++++---- docs/community/aoc.html | 89 +++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 121 insertions(+), 9 deletions(-) diff --git a/community/aoc.md b/community/aoc.md index b636668d..930040fb 100644 --- a/community/aoc.md +++ b/community/aoc.md @@ -31,6 +31,36 @@ + + In addition to these, Leah wrote two blog posts explaining her solutions for [day 6](https://leahneukirchen.org/blog/archive/2021/12/counting-lanternfish-with-bqn-and-linear-algebra.html) and [day 9](https://leahneukirchen.org/blog/archive/2021/12/surveying-lava-basins-with-bqn-and-fixpoints.html). The number of solutions for each of the 25 days is plotted below, along with totals from AoC's [stats page](https://adventofcode.com/2021/stats). The BQN solutions are scaled to be visible here: there are 6839 times more valid AoC submissions than published BQN solutions overall. @@ -43,11 +73,8 @@ width ← 256 pad ← 40‿40 pad1 ← 40‿10+pad -pa ← At "class=Paren|stroke=currentColor" pc ← At "class=red|r=4" -rc ← At "class=code|stroke-width=1|rx=6" -gr ← "g" At "stroke-width=1|font-size=13px|text-anchor=end|fill=currentColor" -Path ← "path" Elt ⊣∾"d"⋈⊢ +gr ← "stroke-width=1|font-size=13px|text-anchor=end|fill=currentColor" col ← "class"⊸⋈¨"red"‿"green" lab ← "Solutions in:"‿"Anything"‿"BQN" @@ -56,14 +83,14 @@ ar ← ÷2 dim ← width (⊣≍×) ar Scale ← ¬⌾(1⊸⊑) ÷⟜win line ← (/≠¨⊏xy) ⊔ FmtNum ⍉> dim×Scale pts -((-pad1÷2)∾dim+pad1) SVG gr Enc ∾⥊¨ ⟨ +((-pad1÷2)∾dim+pad1) SVG gr Ge ∾⥊¨ ⟨ <"rect" Elt rc∾(Pos-pad÷2)∾"width"‿"height"≍˘FmtNum dim+pad ((col∾¨⊢)⌾(1⊸↓)(Pos(⊑dim)⊸⋈)¨18×0.5+↕3) "text"⊸Attr⊸Enc¨ lab - ("g" At "text-anchor=middle|opacity=0.8") Enc "text"⊸Attr⊸Enc˜´¨ ⟨ + "text-anchor=middle|opacity=0.8" Ge "text"⊸Attr⊸Enc˜´¨ ⟨ ⟨"day", "dy"‿"1em"∾Pos dim×0.5‿1⟩ ⟨"count", "transform"‿"rotate(-90)"∾"dy"‿"-0.35em"∾Pos ⌽dim×0‿¯0.5⟩ ⟩ - pa⊸Path¨ ((0⊸≤∧≤⟜1)/·<∘∾˘("M "⊸∾˘"VH")∾¨·FmtNum dim(×∾˘⌽∘⊣)(=⌜˜↕2)⊸×) Scale 0 + diff --git a/docs/community/aoc.html b/docs/community/aoc.html index 7c0c717f..6d8d8971 100644 --- a/docs/community/aoc.html +++ b/docs/community/aoc.html @@ -32,6 +32,92 @@ Benjamin Applegate

+ + + + + + + + + Day + + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 + 20 + 21 + 22 + 23 + 24 + 25 + + + Raghu + dzaima + Hannu + frasiyav + Leah + Antti + Caleb + Alex + Andrey + Johnny + Ben + Alvin + Josh + Alastair + Olodus + Aren + Dimitri + Alexander + Mathias + m-lima + Dunya + Benjamin + + + + + + + + + + + + + + + + + + + + + + + + + + +

In addition to these, Leah wrote two blog posts explaining her solutions for day 6 and day 9.

The number of solutions for each of the 25 days is plotted below, along with totals from AoC's stats page. The BQN solutions are scaled to be visible here: there are 6839 times more valid AoC submissions than published BQN solutions overall.

@@ -44,8 +130,7 @@ day count - - + -- cgit v1.2.3