Skip to content

Commit 20ac6b9

Browse files
authored
Remove logging prints from advent example. (#6057)
Make this example just print the answer like the other tests do. This makes automated testing of these examples easier.
1 parent f4bd6e4 commit 20ac6b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/advent2024/day11_part2.carbon

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ fn Run() {
5858
var n: i64;
5959
while (ReadInt64(&n)) {
6060
total += ReduceToDigits(n, max_depth, 1, &digits);
61-
PrintInt64(total);
62-
digits.Print(max_depth - 1);
61+
// PrintInt64(total);
62+
// digits.Print(max_depth - 1);
6363
SkipSpaces();
6464
}
6565

6666
var depth: i32 = max_depth - 1;
6767
while (depth >= 0) {
68-
PrintInt64(total);
69-
digits.Print(depth);
68+
// PrintInt64(total);
69+
// digits.Print(depth);
7070
for (digit: i32 in Core.Range(10)) {
7171
let m: i64 = digits.count[digit][depth];
7272
if (m > 0) {

0 commit comments

Comments
 (0)