Home > Back-end >  Data structure team of the team
Data structure team of the team

Time:09-17

If you use the order queue, and the head backward way out of the team, every mobile, data needs to be cleared in front of you, if not clear can cause data leak! Or will cause what kind of question!

CodePudding user response:

Not necessarily, if you use a chain structure to implement a queue, you may need to release,
If use continuous storage array to do, just don't know, just a head, like deleting files, it is not necessary to get rid of all the contents of the file,

CodePudding user response:

If the queue, there will be a rival, of the pointer, so the two Pointers to the queue, so after moving head don't need to care about the content of the entire queue when not in use, unified release ~

CodePudding user response:

reference 2 building self-confidence boy reply:
if it is a queue, there will be a rival, of the pointer, so the two Pointers to the queue, so after moving head don't need to care about, the contents of the queue when not in use, unified release ~

The I in the mobile team head after his queue space will change

CodePudding user response:

reference 1/f, the truth is right or wrong response:
does not necessarily, if you use a chain structure to implement a queue, you may need to release,
If use continuous storage array to do, just don't know, just a head, like deleting files, it is not necessary to get rid of all the contents of the file,

The I in the mobile team head after his queue space will change

CodePudding user response:

reference 1/f, the truth is right or wrong response:
does not necessarily, if you use a chain structure to implement a queue, you may need to release,
If use continuous storage array to do, just don't know, just a head, like deleting files, it is not necessary to get rid of all the contents of the file,

That if this is the case then his team is not completed the team process, only when destruction order table to destroy him

CodePudding user response:

reference 5 floor qq_46411692 reply:
Quote: reference 1/f, the truth is right or wrong response:
does not necessarily, if you use a chain structure to implement a queue, you may need to release,
If use continuous storage array to do, just don't know, just a head, like deleting files, it is not necessary to get rid of all the contents of the file,

That if this is the case then his team is not completed the team process, only when destroyed sequence table destroyed him

Feel you're blindsided and queue access position only head to tail, so as long as the head end I change, whether the data are not in the queue of storage, I wasn't able to access to, less than not there is no access?

CodePudding user response:

Never heard of "data reveal that" this statement,,,

CodePudding user response:

reference qq_46411692 reply: 3/f
Quote: refer to the second floor confident boy reply:
if it is a queue, there will be a rival, of the pointer, so the two Pointers to the queue, so after moving head don't need to care about the content of the whole queue when not in use, the unification release ~

The I in the mobile team head after his queue space changes

Should not, you move the pointer, not modify content to space
  • Related