Pergunta de entrevista da empresa X

You are given a function that is running slow, how do you improve it?

Resposta da entrevista

Sigiloso

17 de nov. de 2015

They want you to parrallelize a certain portion. Once you do that, they ask what it means if the function isn't faster versus if it is. They are looking for you to say that if its faster it was a CPU allocation problem, otherwise there was some other factor making it slow, like maybe disk reads.