Questions raised by linked lists [discussed]

Source: Internet
Author: User
Yesterday I wrote something about the implementation of linked list in. net. ArticleIn fact, the contact list should have started as early as a long time ago in the data structure. However, in my impression, there are very few places to actually use him, it seems that at most some of the previous database structures have been used (at that time, connected nodes are used to record the connections between each record ).

In the past two years, ASP/Asp.net has been used for development, and I mentioned in the previous article that. Net does not provide linked list objects. So I gradually alienated it.

I remember that I went to Microsoft for an interview a few months ago. At that time, the first question was to sort and combine the two consumer lists, so I had no direction at the moment. At that time, I was most familiar with and used the array + arraylist. When such a question suddenly came, my thinking was blurred, and my own theoretical foundation was not yet solid. Later, I finally figured it out.

Now I have a question. I hope to discuss it with you. Java has a linked list object for listing, but why does. Net provide such a class? Some people have already asked whether the application degree of the linked list has declined in the current development environment, so it has not been added to the. NET Framework?

For a variable-length structure that dynamically allocates memory, the linked list should be a more efficient structure than an array. But now I still see a lot of misuse of arraylist.

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.