In this ques the input should dec then inc to get output true.But in the sample input it just increases 1-5 so how is the sample output true
Inc dec problem
hi @pranjuldwivedi120568 any of those parts can be empty too, ie
- first decreasing then increasing
- only increasing
- only decreasing
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.