()
| 47 | } |
| 48 | |
| 49 | export 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 | |
| 55 | export async function showProblem(node?: LeetCodeNode): Promise<void> { |
| 56 | if (!node) { |
nothing calls this directly
no test coverage detected