Seed of Numbers (Problem 7) - InfyTQ Solution in Python

Seed of Numbers (Problem 7)

InfyTQ Solution in Python

Image by _Alicja_ from Pixabay



PROBLEM STATEMENT

Given two numbers, write a python function which returns true if first number is a seed of second number. Otherwise it returns false.

A number X is said to be a seed of number Y, if multiplying X by its each digit equates to Y

For example, 123 is a seed of 738 as 123*1*2*3 = 738.


Sample Input Expected Output
123,738 True
45,1000 False



SOLUTION
SHARE If you find this useful, please share with your friends and Community.
CODE TOGETHER..GROW TOGETHER.
Newer Posts Newer Posts Older Posts Older Posts

More posts

Comments

Post a Comment

Sponsored Content