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

Method __init__

resources/debug/entry/python3/entry.py:163–169  ·  view source on GitHub ↗
(self, ni)

Source from the content-addressed store, hash-verified

161
162class NestedInteger:
163 def __init__(self, ni):
164 nested = []
165 if (isList(ni)):
166 for i, val in enumerate(ni):
167 nested.append(NestedInteger(val))
168 self.nested = nested
169 self.ni = ni
170
171 def isInteger(self) -> bool:
172 """

Callers

nothing calls this directly

Calls 3

isListFunction · 0.85
appendMethod · 0.80
NestedIntegerClass · 0.70

Tested by

no test coverage detected