Queue implementation: A circular array with one unused location
An array is used to represent a queue:
Initial State: the queue is empty
frontIndex = 0, backIndex = array.length - 1
public void enqueue(T newEntry){
if(array is full)
{double Array;
原创
2013-01-04 08:59:45 ·
397 阅读 ·
0 评论