add tests batch 20
This commit is contained in:
@@ -45,7 +45,6 @@ class BalancedSectionPlacementService
|
||||
return $scoreB <=> $scoreA;
|
||||
}
|
||||
$name = strcmp((string) ($a['student_name'] ?? ''), (string) ($b['student_name'] ?? ''));
|
||||
|
||||
return $name !== 0 ? $name : ((int) $a['student_id'] <=> (int) $b['student_id']);
|
||||
});
|
||||
}
|
||||
@@ -80,7 +79,6 @@ class BalancedSectionPlacementService
|
||||
for ($i = 1; $i <= $sectionCount; $i++) {
|
||||
$sizes[$i] = $base + ($i <= $remainder ? 1 : 0);
|
||||
}
|
||||
|
||||
return $sizes;
|
||||
}
|
||||
|
||||
@@ -100,7 +98,6 @@ class BalancedSectionPlacementService
|
||||
if ($cmp !== 0) {
|
||||
return $cmp;
|
||||
}
|
||||
|
||||
return $a['section_index'] <=> $b['section_index'];
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user