[TASK] Implemented Day 6

This commit is contained in:
2021-12-07 20:01:39 +01:00
parent fed31ccb0e
commit 95772849e4
6 changed files with 55 additions and 2 deletions

View File

@@ -14,7 +14,11 @@ class Utils {
}
static sum(values: number[]): number {
return values.reduce((a, b) => a + b, 0);
return values.reduce((a, b) => a + b);
}
static bigSum(values: bigint[]): bigint {
return values.reduce((a, b) => a + b);
}
static zeroes(length: number): number[] {