Skip to main content

rolling_max_i64

Function rolling_max_i64 

Source
pub fn rolling_max_i64(data: &[i64], window: usize) -> Vec<Option<i64>>
Expand description

Rolling maximum over i64 data using monotonic deque. O(n) amortized.

Elements before the window is full are None.