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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user