题目地址
LeetCode#674 Longest Continuous Increasing Subsequence
题目描述
Given an unsorted array of integers, find the length of longest continuous
increasing subsequence (subarray).
Example 1:
1 | Input: [1,3,5,4,7] |
Example 2:
1 | Input: [2,2,2,2,2] |
Note: Length of the array will not exceed 10,000.
解题思路
直接遍历,当连续增长中断的时候更新最大值。
解题代码
1 | class Solution { |