Home > Back-end >  List the c language used under what circumstances
List the c language used under what circumstances

Time:09-28

Bosses please, the time to solve the problem of what kind of list?

CodePudding user response:

Discrete storage, delete or insert more time in the list is better

CodePudding user response:

Suitable for what, is about to see and other data structures compared the
Array stored in order, random access, must define good length to enlarge the difficult
The queue for first-in, first-out
Stack fit into after the first
List for sequential access, quantity change frequently

CodePudding user response:

To store data more frequently used to add, delete data under the condition of using list better.

CodePudding user response:

Array is fixed, the list is to solve the uncertain long list can solve array definition is too long cause memory waste and defines the problem of short is not easy to expand
  • Related