Removed unnecessary constructor.
All checks were successful
Solve / example-action (push) Successful in 47s

This commit is contained in:
Logiar 2024-12-05 08:14:31 +01:00
parent 0a78452ca9
commit 92176926c7
Signed by: Logiar
SSH Key Fingerprint: SHA256:tq77C31em1ZG4oELIHC3k62wq5UzPSXmhqH8g62whIY

View File

@ -21,7 +21,7 @@ for (page in pagesList) {
if (isOrdered(page)) {
orderedMiddleSum += page[page.size / 2]
} else {
val orderedPage = page.sortedWith(Comparator { a, b -> compareByRules(a, b) })
val orderedPage = page.sortedWith { a, b -> compareByRules(a, b) }
unorderedMiddleSum += orderedPage[orderedPage.size / 2]
}
}