Updated run times and a few typos

This commit is contained in:
2020-07-21 09:54:55 -04:00
parent db0788d2cc
commit 467e15817d
33 changed files with 47 additions and 42 deletions

View File

@@ -168,6 +168,10 @@ class Problem19(Problem):
elif((year % 4) == 0):
return True
return False
#Reset the problem so it can be run again
def reset(self):
super().reset()
self.totalSundays = 0
#Gets
#Returns the total sundays that were asked for
@@ -190,5 +194,5 @@ if __name__ == "__main__":
""" Results:
There are 171 Sundays that landed on the first of the month from 1901 to 2000
It took 724.930 milliseconds to run this algorithm
It took an average of 386.694 milliseconds to run this problem through 100 iterations
"""