aboutsummaryrefslogtreecommitdiff
path: root/src/2017/day3/aoc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/2017/day3/aoc.cpp')
-rw-r--r--src/2017/day3/aoc.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/2017/day3/aoc.cpp b/src/2017/day3/aoc.cpp
index 85c2aa4..0142728 100644
--- a/src/2017/day3/aoc.cpp
+++ b/src/2017/day3/aoc.cpp
@@ -42,4 +42,9 @@ int day3(int target) {
return d + p.first;
}
+int day3part2(int target) {
+ spiral_grid grid{9};
+ return grid.fill_until(target);
+}
+
} // namespace aoc2017