Challenge: Vampire Number | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

Challenge: Vampire Number

A vampire number v is a number v=xy with an even number n of digits formed by multiplying a pair of n/2-digit numbers (where the digits are taken from the original number in any order) x and y together. Pairs of trailing zeros are not allowed. If v is a vampire number, then x and y are called its "fangs."

18th Oct 2017, 11:20 AM
MsJ
MsJ - avatar
1 Answer
+ 6
here is my code for that I will mark my answer as best for now but when any other better code will be there then I will change it https://code.sololearn.com/W5ric43tKyDa/?ref=app
18th Oct 2017, 11:55 AM
MsJ
MsJ - avatar