https://ide.codingblocks.com/s/220095 …plz help
I am getting correct answer but only one test case is passing
hello @dhirenkinha ,
![]()
this ans array should be passed from main function .
u are declaring inside search function due to which evertime a new ans array is created.
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.