#How to handle case of not-empty queue?
1 messages · Page 1 of 1 (latest)
<@&987246399047479336> please have a look, thanks.
1 messages · Page 1 of 1 (latest)
I have following code for cyclic queue:
and it doesn't treat case of only "enqueue" operation, so after these operations i get smth for example [1,2,3,4] where head=tail=0 after, but queue isn't empty 😦 How can I fix that?
<@&987246399047479336> please have a look, thanks.