Commit Graph

3 Commits (4000af8bf35314899b164c28b9a2d529b9e9c2b6)

Author SHA1 Message Date
magical ad6279089f day 10 optimizations
- reduce duplicate queue entries by not appending to the queue if a
  point has a nonzero count. (if there's a count then it must have
  already been queued.)

- use the correct data structure for a double-ended queue so pop(0) has
  less work to do

- factor out the list of summits

of these three changes, only the last one has any noticable effect
on the run time. 🤷
2024-12-10 05:49:48 +00:00
magical 4634b831ea remove unused samples 2024-12-10 05:42:31 +00:00
magical 984d92dd6e day 10 2024-12-10 05:42:13 +00:00