Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. int get_max_series(int a[], int size)
  2. {
  3. int max = 0;
  4.  
  5. if(size == 1)
  6. return 1;
  7.  
  8. max = get_max_series(a+1, size-1);
  9.  
  10. if(a[0] < a[1])
  11. {
  12. return max + 1;
  13. }
  14.  
  15. return 1;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement