MCPcopy Index your code
hub / github.com/LeetCode-OpenSource/vscode-leetcode / pickOne

Function pickOne

src/commands/show.ts:49–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47}
48
49export async function pickOne(): Promise<void> {
50 const problems: IProblem[] = await list.listProblems();
51 const randomProblem: IProblem = problems[Math.floor(Math.random() * problems.length)];
52 await showProblemInternal(randomProblem);
53}
54
55export async function showProblem(node?: LeetCodeNode): Promise<void> {
56 if (!node) {

Callers

nothing calls this directly

Calls 2

showProblemInternalFunction · 0.85
listProblemsMethod · 0.80

Tested by

no test coverage detected