Please tell the mistake in my code.
Increasing and Decreasing Sequence
you dont need nested loops, it’ll just increase the time complexity of the program. you can simply iterate over the elements and search for such a point before which the sequence is inc and after which sequence is decreasing. this problem can be solved in o(n) time complexity
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.