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

Method getInteger

resources/debug/entry/python3/entry.py:179–186  ·  view source on GitHub ↗

@return the single integer that this NestedInteger holds, if it holds a single integer Return None if this NestedInteger holds a nested list

(self)

Source from the content-addressed store, hash-verified

177 return True
178
179 def getInteger(self) -> int:
180 """
181 @return the single integer that this NestedInteger holds, if it holds a single integer
182 Return None if this NestedInteger holds a nested list
183 """
184 if (isList(self.ni)):
185 return None
186 return self.ni
187
188 def getList(self):
189 """

Callers

nothing calls this directly

Calls 1

isListFunction · 0.85

Tested by

no test coverage detected