The work of opening a question

Source: Internet
Author: User

---Initial learning programming, write your own understanding of heap, stack, queue and other data structures

Queue: FIFO First, for example: In line with the normal queue first priority;

Stack: Last first out, such as a box, only one mouth, and then put in the things can be taken out first, if you want to take out, then you need to put all the things out after you can;

Heap: Ordered tree structure, for the data is arranged in a certain order, the data can only be taken in accordance with certain rules to select the data you need; For example: A bookshelf, you can take any book in it;

For heap and stack differentiation:

Stack: Mainly store local variables, do not need programmer management, the data life cycle on the stack: program run start-end, once the end stack automatically release all data;

The work of opening a question

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.