Skip to content

Commit 659648c

Browse files
author
avokadoen
committed
Minor refactor of day03.zig
1 parent 2fbbf32 commit 659648c

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

days/day-03/solutions/day03.zig

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ const std = @import("std");
22
const mem = std.mem;
33
const io = std.io;
44
const ArrayList = std.ArrayList;
5-
const Allocator = std.mem.Allocator;
65

76
const MAX_FILE_SIZE = 20_000;
87

@@ -52,11 +51,6 @@ const Map = struct {
5251

5352

5453
pub fn main() anyerror!void {
55-
var arena = std.heap.ArenaAllocator.init(std.heap.page_allocator);
56-
defer arena.deinit();
57-
58-
const allocator = &arena.allocator;
59-
6054
const in = std.io.getStdIn().reader();
6155
const stdout = std.io.getStdOut().writer();
6256

@@ -69,4 +63,4 @@ pub fn main() anyerror!void {
6963
try stdout.print("{}\n", .{path_3_1});
7064

7165
try stdout.print("{}\n", .{map.inspectPath(1, 1) * path_3_1 * map.inspectPath(5, 1) * map.inspectPath(7, 1) * map.inspectPath(1, 2)});
72-
}
66+
}

0 commit comments

Comments
 (0)