Pergunta de entrevista da empresa Two Sigma

the second interview asks to implement a memory allocator the third two interviews is about algorithms