Jump Trading Interview Question

Pseudocode to calculate standard deviation. How would you optimize it? Where might it go wrong?

Interview Answer

Anonymous

Jan 31, 2017

Be wary of numerical overflow or underflow when calculating it in single loop naively!