Lecture 2
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user