We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a1ab9f commit df9be46Copy full SHA for df9be46
src/aoc/2024/day_02.py
@@ -11,10 +11,10 @@ def answer_1(input: List[str]) -> int:
11
return sum(safe_reports)
12
13
14
-def answer_2(input: List[str]) -> int:
15
- all_reports = extract_reports(input)
16
- safe_reports = calculate_safety(all_reports, failure_threshold=1)
17
- return sum(safe_reports)
+# def answer_2(input: List[str]) -> int:
+# all_reports = extract_reports(input)
+# safe_reports = calculate_safety(all_reports, failure_threshold=1) # noqa: F841
+# return sum(safe_reports)
18
19
20
def extract_reports(input: Iterable[str], /) -> Iterator[List[int]]:
tests/fixtures/2024/02-example.txt
@@ -7,4 +7,4 @@
7
--EXPECT--
8
2
9
10
-4
+-1
0 commit comments