Given an unsorted array of integers, find the length of longest
continuous increasing subsequence.
int findLengthOfLCIS(int* nums, int numsSize) {
int count = 0;
int start = 0;
int end = 0;
int i = 0;
if(nums == NULL || numsSize <= 0){
return 0;
}
if(numsSize == 1) {
return 1;
}
i = 1;
start = 0;
end = 0;
count = 1;
while(i < numsSize){
if(nums[i]>nums[end]){
end = i;
}else{
count = (end-start+1) > count ? (end-start+1):count;
start = i;
end = i;
}
i++;
}
count = (end-start+1) > count ? (end-start+1):count;
return count;
}