Open hobovsky opened 1 year ago
Squeaky Window
Moving Average
Both kata require return null/None on invalid configuration of inputs: null array, window length less than 1 or larger than len(arr).
null
None
len(arr)
I think that there's not much difference between max of a window and avg of a window, and 1. can be kept as more complete, and 2. is not needed.
Vote for keep 1 only.
Squeaky Window
Moving Average
Both kata require return
null
/None
on invalid configuration of inputs:null
array, window length less than 1 or larger thanlen(arr)
.