X Interview Question

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

Interview Answer

Anonymous

Nov 17, 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.