how to check whether one number is part of another number or not?
Finding cb numbers
You can do this using strings
please explain me with code…
You just have to check if one number is a part of another
So take input as two strings
And just compare them as you compare two strings
Take two pointers and increment both if the characters are same. If they are different, increment the main string pointer and bring the other pointer to the start of other string.
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.