How to use Data Structure (such as Tree,link list) by Python?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Leon

    #1

    How to use Data Structure (such as Tree,link list) by Python?

    as title


  • ivy

    #2
    Re: How to use Data Structure (such as Tree,link list) by Python?

    Python has built-in list and search tree.
    If you like , you can write it by yourself.


    Comment

    • Josiah Carlson

      #3
      Re: How to use Data Structure (such as Tree,link list) by Python?


      "ivy" <ivy@doramail.c om> wrote:[color=blue]
      >
      > Python has built-in list and search tree.
      > If you like , you can write it by yourself.[/color]

      Python does not come with a tree data structure. It does come with a
      'dictionary', which is implemented as a hash table.

      - Josiah

      Comment

      • Leon

        #4
        Re: How to use Data Structure (such as Tree,link list) by Python?

        thanks......
        I use list intead tree
        use pop() and append()....(St ack)
        "Josiah Carlson" <jcarlson@uci.e du>
        ???????:mailman .5800.109938194 2.5135.python-list@python.org ...[color=blue]
        >
        > "ivy" <ivy@doramail.c om> wrote:[color=green]
        >>
        >> Python has built-in list and search tree.
        >> If you like , you can write it by yourself.[/color]
        >
        > Python does not come with a tree data structure. It does come with a
        > 'dictionary', which is implemented as a hash table.
        >
        > - Josiah
        >[/color]


        Comment

        Working...