efficient resizing of an array-based ring buffer, keeping items: Are there really 12 cases to consider?

后端 未结 0 1505
无人及你
无人及你 2020-12-13 05:41

Some time ago I wrote an array-based ring buffer (queue) in C, and later I added code to change the capacity (resizing it) while keeping elements. Recently I found out that

相关标签:
回答
  • 消灭零回复
提交回复
热议问题