Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int temp,count;
- temp=count=1;
- for (int i=0;i<n;i++){
- for (int j=0;j<n;j++){
- if((j<n-1 && arr[i][j]<arr[i][j+1]) || (i<n-1 && j==n-1 && arr[i][j]<arr[i+1][0] ) ){
- temp++;
- }
- else{ if (temp>count){
- count=temp;temp=1;
- }}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement