摘要: There are N piles of stones arranged in a row. The i-th pile has stones[i] stones. A move consists of merging exactly K consecutive piles into one pil 阅读全文
posted @ 2019-03-28 19:43 Veritas_des_Liberty 阅读(284) 评论(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-28 17:23 Veritas_des_Liberty 阅读(369) 评论(0) 推荐(0)
摘要: You are given an integer array A. From some starting index, you can make a series of jumps. The (1st, 3rd, 5th, ...) jumps in the series are called od 阅读全文
posted @ 2019-03-28 17:04 Veritas_des_Liberty 阅读(292) 评论(0) 推荐(0)