Regarding the error

Hello @gargshivam2001 please wait i am checking your code.

Hello @gargshivam2001 this is the correct code and it is passing very test case:


Happy Learning!!

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.

https://ide.codingblocks.com/s/468224 testcases are not clearing

hello @gargshivam2001

check now->

in third argument, u need to pass size of array in bytes u were passing array lenght

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.