About this question
Easy · mle_slice · Quant Developer interview question · mle-slice
Given a list of floats xs, return a list of the same length where element i is the maximum of xs0..=i (the prefix maximum). Example: xs = 1.0, 3.0, 2.0, 5.0, 4.0 returns 1.0, 3.0, 3.0, 5.0, 5.0.
Keep practicing