aboutsummaryrefslogtreecommitdiff
path: root/src/2022/day12/aoc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/2022/day12/aoc.cpp')
-rw-r--r--src/2022/day12/aoc.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/2022/day12/aoc.cpp b/src/2022/day12/aoc.cpp
index 4cc388d..34913e2 100644
--- a/src/2022/day12/aoc.cpp
+++ b/src/2022/day12/aoc.cpp
@@ -10,15 +10,9 @@ std::pair<int, int> day12(line_view file) {
hm.load(row++, lv);
return true;
});
+ hm.flood(hm.start);
- // hm.print();
- std::vector<int> steps;
- hm.find(hm.end, steps);
-
- for(auto& i : steps) {
- printf("%d\n", i);
- }
- return {0, 0};
+ return {hm.was(hm.end), 0};
}
}