MCPcopy
hub / github.com/doocs/leetcode / load_result

Function load_result

solution/util.py:93–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91
92
93def load_result() -> List[dict]:
94 result_file = "./result.json"
95 if not os.path.exists(result_file):
96 return []
97 with open(result_file, "r", encoding="utf-8") as f:
98 res = f.read()
99 return json.loads(res)
100
101
102def load_contest_result() -> List[dict]:

Callers 1

runFunction · 0.85

Calls 1

readMethod · 0.45

Tested by

no test coverage detected