This issue is a discussion for contributors to collaborate in getting ready to be featured in 48in24. Please refer to this forum topic for more info.
We will be featuring Circular Buffer from Mar 05 onwards.
Staff jobs
These are things for Erik/Jeremy to do:
☐ Check/update exercise in Problem Specifications
Create + schedule video
Community jobs
For each track:
Implement Circular Buffer
Add approaches (and an approaches introduction!) for each idiomatic or interesting/educational approach.
Add video walkthroughs (record yourself solving and digging deeper into the exercise).
Highlight up to 16 different featured exercises (coming soon)
Existing Approaches
You can use these as the basis for approaches on your own tracks. Feel free to copy/paste/reuse/rewrite/etc as you see fit! Maybe ask ChatGPT to translate to your programming language.
This week’s exercise was swapped relatively late. For that reason, two of the featured tracks (Groovy and Scala) don’t yet implement this exercise. It would be great if someone could add the exercise to those tracks before we feature this exercise.
Just to re-iterate, we need to implement this exercise in Groovy and Scala as those are the featured languages. Is there anybody that can help with that?
Some solutions use an array with size == capacity + 1 and store read_index and write_index in the range [0, size)
I use an array with size == capacity , with read_index in the range [0, size) and write_index in the range [read_index, read_index + size] . Perhaps clearer would be read_index in the range [0, size) , count in the range [0, size] so then write_index can be calculated as (read_index + count) % size
@BNAndras with the risk of being too forward, you added the reverse-string exercise to Scala. Would you be comfortable in adding circular-buffer to Scala too? If not, no worries.