Xtuoj 1140 Anti-goldbach ' s conjecture (number theory)

Source: Internet
Author: User

The allocation and collection of nodes in a linked list is implemented dynamically by the system-provided standard functions malloc and free, called dynamic linked lists.
If the program supports pointers, you can implement the linked list in our general form, allocate it when needed, and recycle it when it is not needed.
Dynamic linked list space can be dynamically expanded.
typedef struct node{
Eletype data;
struct node * PNEXT;
}node;

In some high-level languages, there is no "pointer" data type, only arrays can be used to simulate the structure of a linear list.
The pointer "field" in the array element holds not the actual address of the element in memory, but the position in the array. Such a linked list
Called a static linked list. And by defining a larger array of structures to act as an alternate node space (that is, the storage pool),
Each node should contain at least two domains: the data domain and the cursor domain.
Static single-linked list storage structure for linear tables:

#define MAXSIZE 100;
typedef struct
{
Elemtype data;
int cur;
}component,slinklist[maxsize];

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.