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