Add solutions

This commit is contained in:
Laurens Miers 2024-09-25 15:26:17 +02:00
parent 7417f01d5d
commit b056b6ad81
96 changed files with 229 additions and 166 deletions

View file

@ -64,7 +64,7 @@ pub fn main() !void {
const allocator = arena.allocator();
// allocate memory for this array
var avg: []f64 = ???;
var avg: []f64 = try allocator.alloc(@TypeOf(arr[0]), arr.len);
runningAverage(arr, avg);
std.debug.print("Running Average: ", .{});