MCPcopy Create free account
hub / github.com/ccagml/leetcode-extension / start

Function start

resources/debug/entry/python3/entry.py:295–316  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

293
294
295def start():
296 lines = testString.split("\\n")
297 lines = lines[:len(paramTypes)]
298 params = []
299 for i, val in enumerate(lines):
300 params.append(json.loads(codecs.getdecoder("unicode_escape")(val)[0]))
301
302 module = loadModule()
303
304 if (problemNum == 341):
305 newParams = []
306 for i, val in enumerate(params):
307 newParams.append(parseParameter(i, paramTypes[i], val))
308
309 i, v = module.NestedIterator(newParams[0]), []
310 while i.hasNext():
311 v.append(i.next())
312 else:
313 solution = module.Solution()
314 func = getattr(solution, funcName)
315
316 runUserScript(func, params, paramTypes)
317
318
319def makeMessage(ty, message):

Callers 1

entry.pyFile · 0.70

Calls 4

loadModuleFunction · 0.85
appendMethod · 0.80
parseParameterFunction · 0.70
runUserScriptFunction · 0.50

Tested by

no test coverage detected