HF RL Explorer

Task: Implement a Circular Buffer in JavaScript

Task: Implement a Circular Buffer in JavaScript: a task in Terminal-Lego-15k (Harbor dataset). A circular buffer (also known as a ring buffer) is a fixed-size data structure that uses a single, contiguous block of memory. When the buffer is full and a new element is added, the oldest element is…

The task

A **circular buffer** (also known as a ring buffer) is a fixed-size data structure that uses a single, contiguous block of memory. When the buffer is full and a new element is added, the oldest element is overwritten. This makes it ideal for streaming data, producer-consumer scenarios, and implementing fixed-size…

Part of PrimeIntellect/Terminal-Lego-15k.