MCPcopy Index your code
hub / github.com/JacobLinCool/LeetCode-Stats-Card / getProblemStats

Function getProblemStats

packages/core/src/query.ts:16–25  ·  view source on GitHub ↗
(
    difficulty: string,
    acCounts: ProblemCount[],
    totalCounts: ProblemCount[],
)

Source from the content-addressed store, hash-verified

14}
15
16function 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
27function getCNProblemStats(
28 difficulty: string,

Callers 1

usMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected