Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Stack ¶
type Stack struct {
// contains filtered or unexported fields
}
func (*Stack) Peek ¶
func (s *Stack) Peek() (value *treeNode)
Return the value of the element on the top of the stack but don't remove it. If the stack is empty, return nil
Click to show internal directories.
Click to hide internal directories.