Skip to content

Instantly share code, notes, and snippets.

@egraldlo
Created September 30, 2014 09:14
Show Gist options
  • Save egraldlo/deba27629c93247ace4a to your computer and use it in GitHub Desktop.
Save egraldlo/deba27629c93247ace4a to your computer and use it in GitHub Desktop.
sub
int A[10];
int max=0;
int len=1;
for(int i=0;i<10;i++) {
if(A[i]<A[i+1]){
len++;
}
else{
if(len>max)
max=len;
len=1 ;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment