March 2019
Intermediate to advanced
336 pages
9h 9m
English
The IsUnUsed method of the CircularQueue class in the following snippet checks whether head is equal to the last node and returns true if so; otherwise, it returns false:
// IsUnUsed methodfunc (circularQueue CircularQueue) IsUnUsed() bool { return circularQueue.head == circularQueue.last}
Read now
Unlock full access