Run Code  | API  | Code Wall  | Users  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Queue with Limited Size of Arrays

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 0.53 sec, absolute running time: 0.08 sec, cpu time: 0.02 sec, memory peak: 3 Mb, absolute service time: 0,62 sec 
edit mode |  history  | discussion
used = 3
front->used = 3
back->used = 3
used = 5
front->used = 3
back->used = 2
=> q.front() = 1
=> q.front() = 2
used = 4
front->used = 2
back->used = 2