给定一个没有排序的整数数组,找到最长的连续递增的子序列(子数组)的长度 注意审题:该题求的是连续,故可以使用滑动窗口的方法来求解 def findlcis(alist): n=o res=0 for i in range(len(alist)): if alist[i]>alist[i-1]: n+=1 res=max(res,n) else: n=1 return res