From 65034fdf98420f54468b8b57d428389f00baa74b Mon Sep 17 00:00:00 2001 From: Andinus Date: Sun, 6 Dec 2020 18:51:07 +0530 Subject: Add more to part-05 README --- 2020/day-05/README.org | 4 ++++ 1 file changed, 4 insertions(+) (limited to '2020') 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 { -- cgit 1.4.1-2-gfad0