Domanda di colloquio di Two Sigma

Derive the closed form solution for a cost function