summaryrefslogtreecommitdiff
path: root/day-04
diff options
context:
space:
mode:
authorSimponic <loganhunt@simponic.xyz>2022-12-11 22:27:34 -0700
committerSimponic <loganhunt@simponic.xyz>2022-12-11 22:27:34 -0700
commit7db39f82bfcd196f840bf3c2a820331c6a04d570 (patch)
tree74be3f7116c194184a05a25bcb77c2ee5f0f8ff8 /day-04
parent4ed1b3307dc5aaa1b3d04e452df723c272344d6c (diff)
downloadaoc-7db39f82bfcd196f840bf3c2a820331c6a04d570.tar.gz
aoc-7db39f82bfcd196f840bf3c2a820331c6a04d570.zip
Day 12
Diffstat (limited to 'day-04')
-rw-r--r--day-04/sol.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/day-04/sol.cpp b/day-04/sol.cpp
index 7a6a0cb..d7847da 100644
--- a/day-04/sol.cpp
+++ b/day-04/sol.cpp
@@ -61,13 +61,11 @@ std::string solve(std::vector<stack_type> &stacks, std::vector<std::string> &lin
;
if (problem == PROBLEM_1)
- {
for (int i = 0; i < amount; ++i)
{
stacks[to - 1].push(stacks[from - 1].top());
stacks[from - 1].pop();
}
- }
else
{
for (int i = 0; i < amount; ++i)