package
Version:
v3.0.1
Opens a new window with list of versions in this module.
Published: Nov 3, 2022
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Node struct {
Val any
Next *Node
}
Node structure
SList is our struct that point to stack with container/list.List library
Empty check our stack has value or not
Length return length of our stack
Peak is return last value that insert into our stack
Pop is return last value that insert into our stack
also it will remove it in our stack
Push add a value into our stack
Stack has jost top of node and with length
Source Files
¶
Click to show internal directories.
Click to hide internal directories.