This is my code can anyone help me what i am doing wrong here
- you forgot to take input in array
- at line no 9
arr[end] = arr[temp];
this is incorrect
correct one is
arr[end] = temp;
check modified Code below
thank you so much really this was my 14 day asking the same question no one replied … thank you
really sorry for this
you can raise this issue by dropping a mail at [email protected]
where you have asked your doubt?
you can use WhatsApp grp to raise this issue
i have sumbitted the code and still only one test case has been passed … what should i do?
let me check the code once again
actually constraints are large
Constraints N cannot be Negative. Range of Numbers can be between -1000000000 to 1000000000.
so using int variable may overflow
use long long int instead of int
is it working?
ahhh… no even i tried this not working still only 1 test case is passed
I haven’t studied pointers yet otherwise i think this may be done by pointers
code is correct actually
we have to print the elements in different lines
Sample Input 5 0 4 6 8 9 Sample Output 9 8 6 4 0
check now same link of code given above
it should work
so i have to make any changes or not?
no just copy the code from above link
i have updated that code
oh yes i got it now we put endl on different line thank you so much for sticking wit me.
now i am marking this doubt as resolved
plz give your feedback
from the link provided below
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