Like if n==2 then what will be its last_digit will it be 2 or I will have to take both cases 0 and 1 and If I take n==0 it is countSum(1,0)+countSum(1,1) So it will be 2+2 that is 4 and then I will also have to add when the last digit is 1 so total it will be 4+2=6, But the ans is3, Please tell about this one.
Like if n==2 then what will be its last_digit will it be 2 or I will have to take both cases 0 and 1 and If I take n==0 it is countSum(1,0)+countSum(1,1) So it will be 2+2 that is 4
@cbcao263 for n == 2, you have to consider both cases. I dont understand what are you asking in the rest of the part, please try to be more clear.
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.