Sir i am failing one test case ,please tell me where i am lacking
Hi pankaj
Ur code seems to be fine
Just intialize ur array with a size
Like a[100000] not a[a]
have done too still don’t work and sir can you tell me please what diffrence will it create
Actually u r intializing array at run time so it may or may reserve the required memory
Or either u can intialize array dynamically
Ok see the limit of the number
Make array long long int
sir triend the way you told me still iam getting one test case faliure
ok chck for this test case
5
2 2 2 2 2
checked for the that case too you asked ans is yes still getting wrong answer in 9 th test case
but for the test case ans is no
question asked for strictly increasing and strictly decreasing
that means 1 2 3 or 5 4 3
not same one 2 2 2 or 5 5 4 these are not strictly and decreasing respectively
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.