Day 7 Part 1 complete -> Didn't realise that sorting the hands of the same type required using an unsorted list :)

This commit is contained in:
2023-12-07 18:57:05 +00:00
parent 12fe856e43
commit cbfc3a4dfc
2 changed files with 5 additions and 2 deletions
+2 -2
View File
@@ -79,8 +79,8 @@ impl Day07 {
});
}
hand.sort();
hands.push((hand.iter().rev().map(|c| *c).collect(), stake.parse()?));
hands.push((hand, stake.parse()?));
// hands.push((hand.iter().rev().map(|c| *c).collect(), stake.parse()?));
}
Ok(hands)
}