i tried this code for inversion count question of hakerblocks
it is giving correct ans for smaller test cases but failed for larger test cases.
the expected output for the test case i have given is 2440 but it is giving 2458 as answer.
please tell me what is wrong in my code.
Inversion count question failed for larger test cases
@Eshika where is the question link? how did you know the answer for such a long array.
(sorry for the late reply will reply to you asap now)
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.