Print all maximal increasing contiguous sub-array in an array
Given an array arr[], the task is to find all the maximal contiguous increasing subarray in a given array. Examples: Input: arr[] = { 80, 50, 60, 70, 40, 50, 80, 70 } Output: 80 50 60 70 40 50 80 70 Input: arr[] = { 10, 20, 23, 12, 5, 4, 61, 67, 87, 9 } Output: 10 20 23 12 5 4 61 67 87 9 Approach: I