3 ms·
I wouldn't call this a trick. This is a staple in the data structures books when they teach how to implement queues using arrays. The same approach can be exte
by pkd 10y ago
I wouldn't call this a trick. This is a staple in the data structures books when they teach how to implement queues using arrays. The same approach can be extended to implementing circular and double ended queues as well.