Skip to content

Commit 20fb04e

Browse files
committed
style: deno fmt
small fix for 2019/day/11/part/2 types
1 parent a8e70c5 commit 20fb04e

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

2019/day/11/part/2/solve.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { program } from "../../../9/intcode.ts";
22

3-
43
export default function solve(input: string) {
54
const memory = input.split(",").map(Number);
65
const panels = paintPanels(program(memory));
@@ -23,7 +22,7 @@ export function paintPanels(outputs: ReturnType<typeof program>) {
2322
return result;
2423
}
2524

26-
function stringify(hashedCoordinates: Pick<Set<string>, "has" | >) {
25+
function stringify(hashedCoordinates: Pick<Set<string>, "has" | "keys">) {
2726
let minX = Infinity, maxX = -Infinity, minY = Infinity, maxY = -Infinity;
2827
for (const coordinates of hashedCoordinates.keys()) {
2928
const [x, y] = coordinates.split(",").map(Number);
@@ -40,4 +39,4 @@ function stringify(hashedCoordinates: Pick<Set<string>, "has" | >) {
4039
output += "\n";
4140
}
4241
return output;
43-
}
42+
}

2025/day/2/part/1/solve.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import solve from "./solve.ts";
33
import { assertEquals } from "@std/assert";
44

55
Deno.test("example", () => {
6-
const input = `11-22,95-115,998-1012,1188511880-1188511890,222220-222224,1698522-1698528,446443-446449,38593856-38593862,565653-565659,824824821-824824827,2121212118-2121212124`;
6+
const input =
7+
`11-22,95-115,998-1012,1188511880-1188511890,222220-222224,1698522-1698528,446443-446449,38593856-38593862,565653-565659,824824821-824824827,2121212118-2121212124`;
78

89
assertEquals(solve(input), 1227775554);
910
});

2025/day/2/part/2/solve.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import solve from "./solve.ts";
33
import { assertEquals } from "@std/assert";
44

55
Deno.test("example", () => {
6-
const input = `11-22,95-115,998-1012,1188511880-1188511890,222220-222224,1698522-1698528,446443-446449,38593856-38593862,565653-565659,824824821-824824827,2121212118-2121212124`;
6+
const input =
7+
`11-22,95-115,998-1012,1188511880-1188511890,222220-222224,1698522-1698528,446443-446449,38593856-38593862,565653-565659,824824821-824824827,2121212118-2121212124`;
78

89
assertEquals(solve(input), 4174379265);
910
});

0 commit comments

Comments
 (0)