advent-of-code-2023/src/day06.zig

45 lines
1.1 KiB
Zig
Raw Normal View History

2020-11-26 22:46:03 +01:00
const std = @import("std");
const Allocator = std.mem.Allocator;
2021-11-24 06:16:05 +01:00
const List = std.ArrayList;
const Map = std.AutoHashMap;
const StrMap = std.StringHashMap;
2021-11-24 05:56:51 +01:00
const BitSet = std.DynamicBitSet;
2021-11-24 06:16:05 +01:00
const Str = []const u8;
2020-11-26 22:46:03 +01:00
2021-11-24 06:08:22 +01:00
const util = @import("util.zig");
const gpa = util.gpa;
2021-11-24 05:56:51 +01:00
const data = @embedFile("../data/day06.txt");
2020-11-26 22:46:03 +01:00
2021-11-24 05:56:51 +01:00
pub fn main() !void {
2020-11-26 22:46:03 +01:00
}
// Useful stdlib functions
const tokenize = std.mem.tokenize;
const split = std.mem.split;
const indexOf = std.mem.indexOfScalar;
const indexOfAny = std.mem.indexOfAny;
const indexOfStr = std.mem.indexOfPosLinear;
const lastIndexOf = std.mem.lastIndexOfScalar;
const lastIndexOfAny = std.mem.lastIndexOfAny;
const lastIndexOfStr = std.mem.lastIndexOfLinear;
const trim = std.mem.trim;
const sliceMin = std.mem.min;
const sliceMax = std.mem.max;
2021-12-01 01:26:28 +01:00
const parseInt = std.fmt.parseInt;
const parseFloat = std.fmt.parseFloat;
const min = std.math.min;
const min3 = std.math.min3;
const max = std.math.max;
const max3 = std.math.max3;
const print = std.debug.print;
const assert = std.debug.assert;
const sort = std.sort.sort;
const asc = std.sort.asc;
const desc = std.sort.desc;