AKUNA CAPITAL Interview Question

Implement a thread safe circular buffer

Interview Answer

Anonymous

Apr 7, 2017

They give you a class and function declarations: pop, push, front, empty, constructors and destructors and you write the functions using a buffer and some integer variables as private members of the class and you are given 30-45 minutes for it.

1