Skip to content

Commit

Permalink
Update day_15.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
believer authored Dec 15, 2023
1 parent e0d915b commit b643ee4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rust/2023/src/day_15.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
//! Day 15: Lens Library
//!
//! The first part was a quick one using the as_bytes() method on strings.
//! The second part was a bit trickier, but not too bad. The steps were
//! The second part was a bit trickier, not too bad. The description was an
//! exercise in reading comprehension. Once I understood, the steps were
//! simple, but mutating the HashMap and the inner vec was the tricky part.
//!
//! Refactored part 2 to use one list for the boxes and a HashMap for the
//! Refactored part 2 to use one vec for the boxes and a HashMap for the
//! current focal lengths. This made it easier, and faster, to mutate the boxes and
//! calculate the focusing power.

Expand Down

0 comments on commit b643ee4

Please sign in to comment.