day 2 - part 1 - refactoring
This commit is contained in:
parent
2b223c0360
commit
c3796ec338
1 changed files with 0 additions and 8 deletions
|
@ -25,14 +25,6 @@ def is_report_safe(report: list[int]) -> bool:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
def get_records(input_file: Path) -> list[list[int]]:
|
|
||||||
records = []
|
|
||||||
for line in input_file.open():
|
|
||||||
record = [int(i) for i in line.strip().split(" ")]
|
|
||||||
records.append(record)
|
|
||||||
return records
|
|
||||||
|
|
||||||
|
|
||||||
def get_reports(input_file: Path) -> list[list[int]]:
|
def get_reports(input_file: Path) -> list[list[int]]:
|
||||||
reports = []
|
reports = []
|
||||||
for line in input_file.open():
|
for line in input_file.open():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue