Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
munificent
on Aug 27, 2016
|
parent
|
context
|
favorite
| on:
Itsy Bitsy Data Structures – Simplified examples o...
You can avoid the memory leak without adding too much complexity by just making it a circular buffer:
https://en.wikipedia.org/wiki/Circular_buffer
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
https://en.wikipedia.org/wiki/Circular_buffer