Day 15 Part 1
Summary
Determine the some of each string and then add them all together
To determine the value of a string, loop through each character and:
- Get the ASCII code for it, add to string total
- Multiply string total by 17
- Set the total to the remainder of dividing itself by 256
Full challenge: Day 14
Formatting
Read in the raw data, separate by commas, return the array string[]
Calculating
It as easy as it sounds, follow the steps provided
|
|
On to Part 2
Edit: markdownlint, textlint and meta TOML -> YAML