Contents:
get_input()
get_string_hash()
main()
parse_step_pt2()
process_steps_pt2()
question1()
question2()
AddRemove
AddRemove.Add
AddRemove.Remove
Box
Box.add_lens()
Box.calculate_power()
Box.contents
Box.id
Box.remove_lens()
Lens
Lens.focal_length
Lens.name
Step
Step.box
Step.focal_length
Step.lens_name
Step.process
test_box()
test_lens()
test_get_input()
test_get_string_hash()
test_parse_pt2()
test_questions()
Day15 solution.
Get input into list of instructions to parse.
Returns a string’s hash.
hash
Read input and call question1/question2.
Handles as step in part 2.
Process a list of steps.
Returns the sum of hashes for every step.
Process each step into “lens” boxes and return the total lens power.