On Fri, 4 Mar 2005, Andrei wrote:
> Shitiz Bansal wrote on Fri, 4 Mar 2005 09:19:41 -0800 (PST):
>
> > Any body has any idea on how to implement a linked list in python?
There's a chapter on Linked Lists in "How to Think Like a Computer
Scientist":
http://www.ibiblio.org/obp/thinkCSpy/chap
Shitiz Bansal wrote on Fri, 4 Mar 2005 09:19:41 -0800 (PST):
> Any body has any idea on how to implement a linked
> list in python?
Perhaps like this:
>>> class node(object):
... def __init__(self, item, next=None):
... self.item = item
... self.next = next
>>> a = node('item