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

Method get_title

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

Source from the content-addressed store, hash-verified

105 return j
106
107 def get_title(self, id):
108 content = self.get_problem_content(id)
109 if content == None:
110 print("title not exist:", id)
111 return str(id)
112 j = json.loads(content)
113 return j['data']['question']['translatedTitle']
114
115 def get_title_with_slug(self, id, slug, paid_only):
116 content = self.get_problem_content(id)

Callers 1

generate_leetcodeMethod · 0.80

Calls 2

get_problem_contentMethod · 0.95
printFunction · 0.85

Tested by

no test coverage detected