i am submitting the code and it is showing correct but green tick is not showing against it
Problem not getting submitted
your solution won’t work for a trivial case.
think about the case: N=0 and digit = 0… the answer should be 1.
Handle this case separately.
Thanks.
1 Like
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.