How to solve this Increasing Decreasing Sequence questions using Recursion only. I have tried multiple times but didn’t get any successful approach yet. Can somebody please me with it? Any language is fine - C++/Java/Python.
Question Link - Increasing Decreasing Sequence Question