MCPcopy Create free account
hub / github.com/austingebauer/go-leetcode / NestedInteger

Struct NestedInteger

flatten_nested_list_iterator_341/solution.go:29–32  ·  view source on GitHub ↗

** * // This is the interface that allows for creating nested lists. * // You should not implement it, or speculate about its implementation * type NestedInteger struct { * } * * // Return true if this NestedInteger holds a single integer, rather than a nested list. * func (this NestedInteger

Source from the content-addressed store, hash-verified

27 */
28
29type NestedInteger struct {
30 value any
31 isInt bool
32}
33
34func NewNestedInteger(value any) *NestedInteger {
35 var isInt bool

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected