summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2021-11-26 23:54:30 +0000
committerTomasz Kramkowski <tk@the-tk.com>2021-11-26 23:54:30 +0000
commit515c7bff241144022a5a10b8e984c7bd90ba0c90 (patch)
tree18be7e555ed0bc13bf7d891430cf8d9d71c050cd
parentdeb9cd82db7f5b6a44f613feb0959110ce70c2e6 (diff)
downloadaoc2015-515c7bff241144022a5a10b8e984c7bd90ba0c90.tar.gz
aoc2015-515c7bff241144022a5a10b8e984c7bd90ba0c90.tar.xz
aoc2015-515c7bff241144022a5a10b8e984c7bd90ba0c90.zip
24: don't reverse
-rw-r--r--24/solution.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/24/solution.py b/24/solution.py
index 6aa9ebe..a3c6604 100644
--- a/24/solution.py
+++ b/24/solution.py
@@ -37,7 +37,6 @@ def part2(packages):
if __name__ == '__main__':
with open('input') as f:
- packages = list(int(l.rstrip()) for l in f)
- packages.reverse()
+ packages = [int(l.rstrip()) for l in f]
print(part1(packages))
print(part2(packages))