Skip to content

Latest commit

 

History

History
15 lines (8 loc) · 461 Bytes

solution.md

File metadata and controls

15 lines (8 loc) · 461 Bytes

Day 3 Solution

Part 1

Python's built-in set operations are extremely useful - you can just take the intersection of the two halves (as sets).

A quick way for finding the priority of a character is to take its index in the alphabet (plus 1 if necessary).

Part 2

Similar to Part 1, you can use the union and intersection methods offered by Python's sets.

Thoughts

Today went pretty smooth, especially with all of the Python built-in features.