MCPcopy Create free account
hub / github.com/AlphaGPU/leetgpu-challenges / get_difficulty

Function get_difficulty

scripts/update_challenges.py:38–43  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

36
37
38def get_difficulty(path: Path) -> str:
39 s = str(path).lower()
40 for d in ("easy", "medium", "hard"):
41 if d in s:
42 return d
43 return "easy"
44
45
46def get_language(filename: str) -> Optional[str]:

Callers 1

load_challengeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected