Top "Circular-buffer" questions

A circular buffer is a data structure that uses a single, fixed-size buffer as if it were connected end-to-end.

How do you implement a circular buffer in C?

I have a need for a fixed-size (selectable at run-time when creating it, not compile-time) circular buffer which can hold …

c data-structures circular-buffer
efficient circular buffer?

I want to create an efficient circular buffer in python (with the goal of taking averages of the integer values …

python circular-buffer
How do I code a simple integer circular buffer in C/C++?

I see a lot of templates and complicated data structures for implementing a circular buffer. How do I code a …

c++ c arrays circular-buffer
Circular buffer in JavaScript

Has anyone already implemented a circular buffer in JavaScript? How would you do that without having pointers?

javascript data-structures circular-buffer
Efficient circular list

I want a simple yet efficient circular buffer/queue. If I use std::vector, I have to do this: if ( …

c++ vector circular-buffer circular-list
Searching for an element in a circular sorted array

We want to search for a given element in a circular sorted array in complexity not greater than O(log …

algorithm binary-search circular-buffer
How to create a closed (circular) ListView?

I want to create a customized ListView (or similar) which will behave like a closed (circular) one: scrolling down - …

android listview customization circular-buffer
How to access array in circular manner in JavaScript

I have an array like [A,B,C,D]. I want to access that array within a for loop like …

javascript arrays loops circular-buffer
Thread-safe circular buffer in Java

Consider a few web server instances running in parallel. Each server holds a reference to a single shared "Status keeper", …

java thread-safety circular-buffer
What are the uses of circular buffer?

What are some of the uses of circular buffer? What are the benefits of using a circular buffer? is it …

c# .net data-structures circular-buffer