Longest Continuous Increasing Subsequence – LeetCode 674
Problem
Description
Given an unsorted array of integers, find the length of longest continuous increasing subsequence (subarray).
Answer
Better
Code
1 | class Solution { |
思路
正常的单次遍历统计。时间复杂度$O(n)$,空间复杂度$O(1)$。
耗时$8$ ms,排名$2.48\%$
Better
思路
还没看到更好的思路