From 10762609434a2736dad0d11386e5ca63a13e6f5b Mon Sep 17 00:00:00 2001 From: Luke Hubmayer-Werner Date: Mon, 5 Dec 2022 15:56:53 +1030 Subject: [PATCH] 2022 Day 5 cheeky notebook --- 2022/day5.ipynb | 105 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 2022/day5.ipynb diff --git a/2022/day5.ipynb b/2022/day5.ipynb new file mode 100644 index 0000000..7f52026 --- /dev/null +++ b/2022/day5.ipynb @@ -0,0 +1,105 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 2, + "metadata": {}, + "outputs": [], + "source": [ + "import re\n", + "import numpy as np\n", + "# pattern = re.compile(r'(\\d+)-(\\d+),(\\d+)-(\\d+)')\n", + "numbers_pattern = re.compile(r'((?:(?