summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2020-12-06 18:51:07 +0530
committerAndinus <andinus@nand.sh>2020-12-06 18:51:07 +0530
commit65034fdf98420f54468b8b57d428389f00baa74b (patch)
treeec969402749d51efff3ad121c5ce9088974e20a1
parent29c5cbe4bee13750c37557e9e988326be5faa420 (diff)
downloadaoc-65034fdf98420f54468b8b57d428389f00baa74b.tar.gz
Add more to part-05 README
-rw-r--r--2020/day-05/README.org4
1 files changed, 4 insertions, 0 deletions
diff --git a/2020/day-05/README.org b/2020/day-05/README.org
index 685327a..1cd6104 100644
--- a/2020/day-05/README.org
+++ b/2020/day-05/README.org
@@ -157,6 +157,10 @@ printing =$id= initially.
 The solution was beautiful & clever, it was [[https://github.com/ggoebel][ggoebel]]'s solution in
 [[https://github.com/codesections/advent-of-raku-2020/blob/main/ggoebel/05.raku][advent-of-raku-2020]] repository. I'll share the relevant parts here, it's
 licensed under the *Artistic License 2.0*.
+
+I liked the first part, they're just replacing "B", "R" with 1 & "F",
+"L" with 0. When you convert it from decimal to binary it directly
+translates to the seat ID.
 #+BEGIN_SRC raku
 given $part {
     when 1 {