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)) {
|
if (isOrdered(page)) {
|
||||||
orderedMiddleSum += page[page.size / 2]
|
orderedMiddleSum += page[page.size / 2]
|
||||||
} else {
|
} 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]
|
unorderedMiddleSum += orderedPage[orderedPage.size / 2]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user