implementation of stack using arrays
implementation of stack
Collapse
X
-
Tags: None
-
-
stack program
how to write a program using stack in python, i know the concept but not able to write a python code for it. could you please show me a sample program.Comment
-
Originally posted by this is kiranimplementation of stack using arrays
>>> a = array.array('i' )
>>> for i in range(10):
... a.append(i)
...
>>> a
array('i', [0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
>>> for i in range(10):
... print a.pop()
...
9
8
7
6
5
4
3
2
1
0
>>> a
array('i')
>>> [/code]Comment
-
Originally posted by this is kiranimplementation of stack using linked lists
Violation:- Tripple posting
- Poorly formulated question
- No effort to show that you have done any work
One more infraction will result in a one week ban on your account.
Thank you for your attention in this matter.Comment
-
-
Comment