Singlylinklist 3--What is we going to do?

Source: Internet
Author: User

The previous examples is just let us get used to link list, but in practice we don ' t just use link list to input and show The data, in other word there is functions we can implement to link list and make it more powerful.

Here's an ADT definiton to link list:

ADT Linklistdata         instances ordered finite collections of zero or more elements Operations Initial        (*l):    Initialize to create a empty link list  l        IsEmpty (L):    Return Whether the list is empty        Clear (*l):    Cle AR list L to make it empty        Getelem (L, I, *e):    Get The ith element in list L, return it to e        Haselem (L, E): 
   return true if found E in list L, otherwise Return false        insert (*l, I, E):    insert element E in the position I Of list L        Delete (*l, I, *e):    Delete the ith element e, and return e        Length (L);    Return number of elements in list Lendadt

Singlylinklist 3--What is we going to do?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.