Move to have day be 2 digit always
[advent-of-code-2020.git] / day05 / static / gitweb.js
diff --git a/day5/other_ways.txt b/day5/other_ways.txt
deleted file mode 100644 (file)
index 62ea744..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-Getting last seat id: cat input.txt | sed -e 's#[FL]#0#g; s#[BR]#1#g;' | sort | tail -n 1 | (read x; echo $((2#$x)))
-
-Getting my seat id: cat input.txt | sed 's|[FL]|0|g; s|[BR]|1|g' | sort | sed -ne '1 { x; }; 2,$ { H; x; s#\n#-#g; /10-/ { s#^.*-##; /00$/ {p; q} }; /01-/ { s#^.*-##; /11$/ {p; q; } }; /11-/ { s#^.*-##; /01$/ {p; q; } }; s#^.*-##; x; }' | ( read x; echo $((2#$x - 1)) )