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

Function runUserScript

resources/debug/entry/python3/problems/429.py:1–8  ·  view source on GitHub ↗
(func, params, paramTypes)

Source from the content-addressed store, hash-verified

1def runUserScript(func, params, paramTypes):
2 if (len(params) != len(paramTypes)):
3 onParameterError()
4
5 newParams = []
6 for i, val in enumerate(params):
7 newParams.append(parseParameter(i, paramTypes[i], val))
8 func(*newParams)
9
10
11class Node:

Callers

nothing calls this directly

Calls 3

appendMethod · 0.80
onParameterErrorFunction · 0.50
parseParameterFunction · 0.50

Tested by

no test coverage detected