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

Function runUserScript

resources/debug/entry/python3/problems/843.py:17–25  ·  view source on GitHub ↗
(func, params, paramTypes)

Source from the content-addressed store, hash-verified

15
16
17def runUserScript(func, params, paramTypes):
18 if (len(params) != len(paramTypes)):
19 onParameterError()
20
21 newParams = []
22 for i, val in enumerate(params):
23 newParams.append(parseParameter(i, paramTypes[i], val))
24
25 func(newParams[1], Master(newParams[0], newParams[1]))
26
27
28def parseSpecialParameter(index, paramType, param):

Callers

nothing calls this directly

Calls 4

appendMethod · 0.80
MasterClass · 0.70
onParameterErrorFunction · 0.50
parseParameterFunction · 0.50

Tested by

no test coverage detected