What is error in my code?

Link to code-> https://ide.codingblocks.com/s/644009

Link to question -> https://leetcode.com/problems/count-of-smaller-numbers-after-self/

hi @ikshuldureja130
I have removed the error from ur code… its compiling but ur code is not giving correct o/p… try to resolve that…

hi @ikshuldureja130


this code is working fine and should pass all test cases…
if u still face any difficulty then do let me know… u can revert here with ur query…

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.

this is the code i wrote and it is giving error on leetcode

hi @ikshuldureja130
I have already shared the corrected code above… refer it…

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.

@ikshuldureja130 you have reopen the doubt
is anything left which you didn’t understood??

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.

Giving me TLE on leetcode



please look into it

hi @ikshuldureja130
I have already shared the code above… kindly go through it…

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.