From 7bb31725918db4c6d522f8f9a14fc1764d447bb6 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Fri, 8 Dec 2023 00:10:59 +0200 Subject: [PATCH] AOC2023: Use the default sort algorithm --- userspace/aoc2023/day7/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userspace/aoc2023/day7/main.cpp b/userspace/aoc2023/day7/main.cpp index addd9655d0..cf3c3dc205 100644 --- a/userspace/aoc2023/day7/main.cpp +++ b/userspace/aoc2023/day7/main.cpp @@ -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) { return hand_score(lhs, joker) < hand_score(rhs, joker); }