Pergunta de entrevista da empresa Apple

write a ring-buffer

Resposta da entrevista

Sigiloso

12 de ago. de 2019

I used a static array, with size 1K (power of 2), and r/w indexes. I was a little sloppy with my index manipulations, and conditions for full/empty RB's. Google any article about this, and just slam down the code.