Skip to content

Instantly share code, notes, and snippets.

@dmrz
Created August 9, 2013 08:47
Show Gist options
  • Save dmrz/6192125 to your computer and use it in GitHub Desktop.
Save dmrz/6192125 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
from problem_18 import count_max_dynamically
if __name__ == '__main__':
with open('triangle.txt') as f:
data_array = [map(int, line.split()) for line in f.readlines()]
result = count_max_dynamically(data_array)
print(result)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment