Skip to content

Commit

Permalink
2023 day 8: handle case where the solution is during the first cycle
Browse files Browse the repository at this point in the history
  • Loading branch information
yut23 committed Dec 10, 2023
1 parent a83720f commit 7f59926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 2023/src/day08.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ long part_2_slow(const std::vector<aoc::day08::CycleInfo> &cycles) {
} else {
diffs.push_back(base_cycle.length);
}
long step = base_cycle.start;
long step = 0;
std::size_t i = 0;
long counter = 0;
// while any of the cycles aren't at a finish node:
Expand Down

0 comments on commit 7f59926

Please sign in to comment.