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 542e876 commit 6dc00f0Copy full SHA for 6dc00f0
puzzles/solutions/2023/d03/p1.py
@@ -1,8 +1,13 @@
1
import sys
2
3
+from schematic_parser import SchematicParser
4
+
5
6
def get_answer(input_text: str):
- raise NotImplementedError
7
+ """Return the sum of all part numbers in the engine schematic."""
8
+ schematic_parser = SchematicParser(input_text)
9
+ part_numbers = schematic_parser.find_part_numbers()
10
+ return sum(part_numbers)
11
12
13
if __name__ == "__main__":
0 commit comments