SHARE
TWEET

Untitled

a guest Jun 20th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top