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

Function parseNode

resources/debug/entry/python3/problems/133.py:17–26  ·  view source on GitHub ↗
(param, nodeMap)

Source from the content-addressed store, hash-verified

15
16
17def parseNode(param, nodeMap):
18 arr = []
19 for i, val in enumerate(param):
20 arr.append(Node(i + 1, []))
21
22 for i, val in enumerate(param):
23 for j, k in enumerate(val):
24 arr[i].neighbors.append(arr[k - 1])
25
26 return arr[0]
27
28
29def parseSpecialParameter(index, paramType, param):

Callers 1

parseSpecialParameterFunction · 0.70

Calls 2

appendMethod · 0.80
NodeClass · 0.70

Tested by

no test coverage detected