Can anybody please explain the logic for the fastest solution written in java?

@anshumansingh

Thanks

Can anybody please explain the logic for the fastest solution written in java?

@anshumansingh

Thanks

i got solution similar to https://www.geeksforgeeks.org/count-of-n-digit-numbers-whose-sum-of-digits-equals-to-given-sum/ but dont quite follow this solutionâ€¦ please explain if u have a chance

i mean i did not fully understand the java solutions provided in interviewbit for this problem.