MCPcopy Create free account
hub / github.com/acm-clan/algorithm-stone / get_level

Method get_level

src/leetcode.py:79–85  ·  view source on GitHub ↗
(self, id)

Source from the content-addressed store, hash-verified

77 return v
78
79 def get_level(self, id):
80 content = self.get_problem_content(id)
81 if content == None:
82 print("title not exist:", id)
83 return str(id)
84 j = json.loads(content)
85 return j['data']['question']['difficulty']
86
87 def check_finish(self, id):
88 for k in self.finished:

Callers 2

generate_codeforcesMethod · 0.45
generate_leetcodeMethod · 0.45

Calls 2

get_problem_contentMethod · 0.95
printFunction · 0.85

Tested by

no test coverage detected