I simply swapped the array elements in increasing order but one test case is showing run time error. how can i optimize my code?
What does swap with positions means here?
Share your code via ide.codingblocks.com so that i can have a look.
But before that, please make sure you aren’t accessing any element that is out of bounds and everything related to that,
You should be able to remove seg.faults and runtime errors yourself…
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.