I couldn’t understand why i+1 cases was ignored in i=even case but was taken into account in i=odd case?
Why i+1 case was ignored in i = even case?
hello @vsinghal202
in case of even we are not taking i+1 becuase
from i we go to i+1 and becuase i+1 is odd we cant perform division so again we will have to take single step from i+1 to i or i+2
which makes this step costly
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.