Lecture 2

This commit is contained in:
Oliver Hofmann
2024-04-11 10:05:53 +02:00
parent e8feb3ca60
commit 74f4161fe7
3 changed files with 10 additions and 20 deletions
+1 -2
View File
@@ -325,7 +325,6 @@ def read_int_sequence(filename: str) -> AlgoDatArray:
with open(filename, "r") as file:
l = list(map(int, file.read().split()))
a = AlgoDatArray(len(l))
AlgoDatValue.memory -= len(l)
for i in range(len(l)):
a.set(i, AlgoDatValue(l[i]))
a[i].value = l[i]
return a