Skip to content

Commit

Permalink
Merge pull request #407 from david-ds/skasch/day20-2
Browse files Browse the repository at this point in the history
Day 20, C++, remove prints
  • Loading branch information
skasch authored Oct 26, 2024
2 parents 907b06e + e904a3c commit 10b3c2b
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions day-20/part-1/skasch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,6 @@ std::string run(const std::string &input) {
pos += kTileCharSize;
}
int64_t result = 1;
for (auto &[edge_bits, tiles] : kEdgeBitsToTiles) {
std::cerr << "kEdgeBitsToTiles[" << edge_bits << "]: ";
for (int tile : tiles) {
std::cerr << tile << ",";
}
std::cerr << "\n";
}
for (auto &[tile_id, edge_bits] : kTileToEdgeBits) {
std::cerr << "kTileToEdgeBits[" << tile_id << "]: ";
for (int edge_bit : edge_bits) {
std::cerr << edge_bit << ",";
}
std::cerr << "\n";
}
for (auto &[tile_id, edge_bits] : kTileToEdgeBits) {
int count_edges = 0;
for (int edge_bit : edge_bits) {
Expand All @@ -71,7 +57,6 @@ std::string run(const std::string &input) {
}
}
if (count_edges == 2) {
std::cerr << "Found " << count_edges << " edges for: " << tile_id << "\n";
result *= tile_id;
}
}
Expand Down

0 comments on commit 10b3c2b

Please sign in to comment.