Removed unnecessary constructor.
All checks were successful
Solve / example-action (push) Successful in 47s
All checks were successful
Solve / example-action (push) Successful in 47s
This commit is contained in:
parent
0a78452ca9
commit
92176926c7
@ -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]
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user