Design by Manoj Jha
Example:
Input: arr[] = [17,15,13,11,9,7,5,3]
Output = Decreasing
Explanation: First sub-array {17,15,13} is strictly decreasing and the second sub-array {11,9,7,5,3} is also decreasing
We can solve this with the divide and conquer algorithm.
To know more about the divide and conquer algorithm you can check the Divide and Conquer
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.