Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NestedIterator ¶
type NestedIterator struct {
// contains filtered or unexported fields
}
Solution2: use stack
func Constructor ¶
func Constructor(nestedList []*NestedInteger) *NestedIterator
func (*NestedIterator) HasNext ¶
func (n *NestedIterator) HasNext() bool
func (*NestedIterator) Next ¶
func (n *NestedIterator) Next() int
type NestedIterator1 ¶
type NestedIterator1 struct {
// contains filtered or unexported fields
}
Solution1: recursion
func Constructor ¶
func Constructor(nestedList []*NestedInteger) *NestedIterator1
func (*NestedIterator1) HasNext ¶
func (n *NestedIterator1) HasNext() bool
func (*NestedIterator1) Next ¶
func (n *NestedIterator1) Next() int
Click to show internal directories.
Click to hide internal directories.