Skip to content
This repository was archived by the owner on Dec 31, 2021. It is now read-only.

Commit 2c07b7f

Browse files
committed
Correcting documentation mistakes.
1 parent 3309c77 commit 2c07b7f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Diff for: src/day5/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ This package contains the source and data for [day 5](https://adventofcode.com/2
77

88
## Post-Task Thoughts
99

10-
Fun task, basically computation of Cartesian points.
11-
Because we are iterating through multiple vents trying to look for matching points, storing points in a dictionary makes a lot of sense as you can utilise the efficiency of hashed lookups.
10+
Fun task, basically just computation of Cartesian points.
11+
Because we are iterating through multiple vents trying to look for matching points, storing points in a dictionary made a lot of sense as you can utilise the efficiency of hashed lookups.
1212
It was easy to design for this task as it was clear in part 1 what the scope of the second part was going to be (diagonal lines), so I think everyone was able to prepare themselves for handling this case.
1313

1414
One library I found particularly helpful for this task that I have previously not used extensively, was the [operator](https://docs.python.org/3/library/operator.html) lib.

Diff for: src/day6/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ This package contains the source and data for [day 5](https://adventofcode.com/2
88
## Post-Task Thoughts
99

1010
This was the easiest task to date, and also my highest leaderboard position so far this year.
11-
As soon as the task mentioned exponential growth, I knew I was going to haves to be careful with how I stored and computed data.
12-
Fortunately storing this in a python dictionary was a very simple solution to this issue mapping a `day countdown timer` integer key to a `sum of fish` value for that countdown.
11+
As soon as the task mentioned exponential growth, I knew I was going to have to be careful with how I stored and computed data.
12+
Fortunately storing this in a python dictionary was a very simple solution to this issue, mapping a `day countdown timer` integer key to a `sum of fish` value.
1313
This means the 'exponential' part of the data is simply captured in 9 integer values, which isn't particularly computationally intensive to operate on.
1414

1515
I think the 'gotcha' in this task would be with languages that have static length integers, fortunately in python 3 you don't have to worry about this.
16-
CPython uses a 'bignum' arithmetic variant, where it's broken up into chunks and can essentially grow indefinitely (provided you don't overflow system memory).
17-
This scaling property barely ever comes in handy for me, but in this case it's lovely to not be using a language like java that use staic-length integers.
16+
CPython uses a variation on 'bignum' arithmetic, where integers are broken up into chunks and can essentially grow indefinitely (provided you don't overflow system memory).
17+
This scaling property barely ever comes in handy for me, but in particular problem it's lovely to not be using a language like java that use static-length integers.
1818
My final sum was `1,572,358,335,990` which needs about 41 bits (6 bytes in practical reality) which is several orders of magnitude above the 32-bit signed integer types many languages have by default.

0 commit comments

Comments
 (0)