March 2019
Intermediate to advanced
336 pages
9h 9m
English
The IsComplete function of the CircularQueue class returns true if the head node's position is the same as the last node position +1; otherwise, it returns false:
// IsComplete methodfunc (circularQueue CircularQueue) IsComplete() bool { return circularQueue.head == (circularQueue.last+1)%circularQueue.size}
Read now
Unlock full access