forked from Bananymous/banan-os
AOC2023: Use the default sort algorithm
This commit is contained in:
@@ -116,7 +116,7 @@ i64 puzzle(FILE* fp, bool joker)
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
BAN::sort_quick(hands.begin(), hands.end(),
|
BAN::sort(hands.begin(), hands.end(),
|
||||||
[joker] (const Hand& lhs, const Hand& rhs) {
|
[joker] (const Hand& lhs, const Hand& rhs) {
|
||||||
return hand_score(lhs, joker) < hand_score(rhs, joker);
|
return hand_score(lhs, joker) < hand_score(rhs, joker);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user