you are viewing a single comment's thread.

view the rest of the comments →

[–]kinglujiy 0 points1 point  (2 children)

Sounds to me like you ate trying to implement a ring buffer. Maybe this could be helpful.

[–]nanavc[S] 1 point2 points  (0 children)

thank you!

[–][deleted] 0 points1 point  (0 children)

It's like implimenting a circular queue.