Stack 代码实现 Flashcards
1
Q
Push & Pop seudocode(Array)
A
2
Q
Time Complexity of Function Push (Array):
A
Worst means the array is overflow
3
Q
Function: Push(Array)
A
4
Q
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?
A
5
Q
Stack: Pop(Array)
A
,
6
Q
Function: Peek(Array)
A
7
Q
Function: isempty && isfull(Array)
A
8
Q
headfile& define & initial : stack (array)
A
9
Q
Headfile && Def Node and Stack: (Link List)
A
10
Q
Function: Initstack(Link List)
just 1 row
A
11
Q
Function: in stack : Isempty(Link List)
A
12
Q
Function: Push(Link List)
A
13
Q
Function: Pop(Link List)
1.temp(delete)
2.returndata
3.top (move)
4.free
5.return
A
14
Q
Function: peek(Link List)
A
15
Q
Function in Stack: Print(Link List)
A