check the code why it’s not working
wrong output!!!
or any short method to code for this ?? cuz it feels long according to recursion
check the code why it’s not working
wrong output!!!
or any short method to code for this ?? cuz it feels long according to recursion
hello @dasvishal60
if u want to implement bs using recursion then u can do it like this->
it will not give correct index, because every time u are changing the base address of the array so the index that u will get will not be correct index
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.