unable to crack logic for the above mentioned problems
Problems - increasing decreasing sequence and help ramu
@surabhi_singh hi,apko is question me ye btana hai ki ap seq ko split kr skte ho increasing than decreasing me ,to iske lie apko ek difference array bnana hoga like ap me common diff hota hai waise hi ,us array me ap consecutive elements ka difference store kroge like an+1 - an .Ab is difference array ko traverse kro and check ki increasing dec wali condition kitno bar arhi hai ,agr ek se jada bar arhi hai to return false else true
hey thanks for the help 
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.