We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0ba11f2 + 84dc403 commit adbe628Copy full SHA for adbe628
src/pages/TablePage/AllProblemsTable.tsx
@@ -35,10 +35,8 @@ export const AllProblemsTable: React.FC<Props> = (props) => {
35
.filter((a) => a.No !== null)
36
.sort((a, b) => (a.No as ProblemNo) - (b.No as ProblemNo))
37
.reduce((prevMap, problem) => {
38
- const key = Math.min(
39
- Math.floor(((problem.No as ProblemNo) - 1) / 100),
40
- 29
41
- );
+ const no = problem.No as ProblemNo;
+ const key = Math.floor(no < 3000 ? (no - 1) / 100 : no / 100);
42
if (!prevMap.has(key)) {
43
prevMap.set(key, []);
44
}
0 commit comments