Skip to content

Commit

Permalink
this?
Browse files Browse the repository at this point in the history
  • Loading branch information
Icerath committed Dec 24, 2024
1 parent 808cca4 commit 0992946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/day23.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ unsafe fn part2_inner(input: &[u8]) -> &'static str {
clique.clear();
}

longest.sort_unstable_by_key(|computer| [computer / 26, computer % 26]);
longest.sort_unstable();
let mut str_len = 0;
for computer in longest {
*STR_OUTPUT.get_unchecked_mut(str_len) = (computer / 26) as u8 + b'a';
Expand Down

0 comments on commit 0992946

Please sign in to comment.