Function
getProblemStats
(
difficulty: string,
acCounts: ProblemCount[],
totalCounts: ProblemCount[],
)
Source from the content-addressed store, hash-verified
| 14 | } |
| 15 | |
| 16 | function getProblemStats( |
| 17 | difficulty: string, |
| 18 | acCounts: ProblemCount[], |
| 19 | totalCounts: ProblemCount[], |
| 20 | ): DifficultyStats { |
| 21 | return { |
| 22 | solved: acCounts.find((x) => x.difficulty === difficulty)?.count || 0, |
| 23 | total: totalCounts.find((x) => x.difficulty === difficulty)?.count || 0, |
| 24 | }; |
| 25 | } |
| 26 | |
| 27 | function getCNProblemStats( |
| 28 | difficulty: string, |
Tested by
no test coverage detected