016 countSawSubarrays
given an array of integers, find the number of contiguous subarrays that represents a sawtooth sequence of at least two elements.
it reminds me of the problem of the swing array.
given an array of integers, find the number of contiguous subarrays that represents a sawtooth sequence of at least two elements.
it reminds me of the problem of the swing array.