Skip to content

Commit

Permalink
[2024] Added Day 21: Keypad Conundrum (documentation)
Browse files Browse the repository at this point in the history
  • Loading branch information
ACSimon33 committed Jan 6, 2025
1 parent 71cf513 commit c7e3f8f
Show file tree
Hide file tree
Showing 4 changed files with 209 additions and 286 deletions.
4 changes: 2 additions & 2 deletions 2024/21/keypad_conundrum/benchmarks/puzzle_benchmarks.zig
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ const puzzle_input = @embedFile("puzzle_input");

// Benchmark of part 1
fn task_1(allocator: std.mem.Allocator) void {
_ = keypad_conundrum.number_of_keys(puzzle_input, 3, allocator) catch {};
_ = keypad_conundrum.code_complexities(puzzle_input, 3, allocator) catch {};
}

// Benchmark of part 2
fn task_2(allocator: std.mem.Allocator) void {
_ = keypad_conundrum.number_of_keys(puzzle_input, 26, allocator) catch {};
_ = keypad_conundrum.code_complexities(puzzle_input, 26, allocator) catch {};
}

pub fn main() !void {
Expand Down
Loading

0 comments on commit c7e3f8f

Please sign in to comment.