Stack 代码实现 Flashcards

1
Q

Push & Pop seudocode(Array)

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Time Complexity of Function Push (Array):

A

Worst means the array is overflow

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Function: Push(Array)

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Stack: Pop(Array)

A

,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Function: Peek(Array)

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Function: isempty && isfull(Array)

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

headfile& define & initial : stack (array)

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Headfile && Def Node and Stack: (Link List)

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Function: Initstack(Link List)

just 1 row

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Function: in stack : Isempty(Link List)

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Function: Push(Link List)

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Function: Pop(Link List)

1.temp(delete)
2.returndata
3.top (move)
4.free
5.return

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Function: peek(Link List)

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Function in Stack: Print(Link List)

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Stack (array) : easy_push - put in -1 to stop

A
17
Q

Stack (array) : easy_push - put in -1 to pop

A