2019年3月2日

摘要: Given a stream of integers and a window size, calculate the moving average of all integers in the sliding window. For example, MovingAverage m = new M 阅读全文
posted @ 2019-03-02 20:29 一直走在路上 阅读(121) 评论(0) 推荐(0)
摘要: A subarray A[i], A[i+1], ..., A[j] of A is said to be turbulent if and only if: For i <= k < j, A[k] > A[k+1] when k is odd, and A[k] < A[k+1] when k 阅读全文
posted @ 2019-03-02 18:24 一直走在路上 阅读(229) 评论(0) 推荐(0)

导航