Stack 代码实现 Flashcards
Push & Pop seudocode(Array)
Time Complexity of Function Push (Array):
Worst means the array is overflow
Function: Push(Array)
Why should the Push and Pop functions need be performed at the head of a Lined List in a Stack implemented using a Lined List?
Stack: Pop(Array)
,
Function: Peek(Array)
Function: isempty && isfull(Array)
headfile& define & initial : stack (array)
Headfile && Def Node and Stack: (Link List)
Function: Initstack(Link List)
just 1 row
Function: in stack : Isempty(Link List)
Function: Push(Link List)
Function: Pop(Link List)
1.temp(delete)
2.returndata
3.top (move)
4.free
5.return
Function: peek(Link List)
Function in Stack: Print(Link List)
Stack (array) : easy_push - put in -1 to stop
Stack (array) : easy_push - put in -1 to pop