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'((?:(?