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

Method isInteger

resources/debug/entry/python3/entry.py:171–177  ·  view source on GitHub ↗

@return True if this NestedInteger holds a single integer, rather than a nested list.

(self)

Source from the content-addressed store, hash-verified

169 self.ni = ni
170
171 def isInteger(self) -> bool:
172 """
173 @return True if this NestedInteger holds a single integer, rather than a nested list.
174 """
175 if (isList(self.ni)):
176 return False
177 return True
178
179 def getInteger(self) -> int:
180 """

Callers

nothing calls this directly

Calls 1

isListFunction · 0.85

Tested by

no test coverage detected