7 kyu

Vampire Numbers

2,780 of 7,075AlejandorLazaro

Description:


Vampire Numbers

Our loose definition of Vampire Numbers can be described as follows:

6 * 21 = 126
# 6 and 21 would be valid 'fangs' for a vampire number as the 
# digits 6, 1, and 2 are present in both the product and multiplicands

10 * 11 = 110
# 110 is not a vampire number since there are three 1's in the
# multiplicands, but only two 1's in the product

Create a function that can receive two 'fangs' and determine if the product of the two is a valid vampire number.

Fundamentals

More By Author:

Check out these other kata created by AlejandorLazaro

Stats:

CreatedFeb 6, 2015
PublishedFeb 6, 2015
Warriors Trained15028
Total Skips2525
Total Code Submissions26594
Total Times Completed7075
Python Completions2780
JavaScript Completions2719
Haskell Completions393
Ruby Completions1122
C# Completions549
Total Stars175
% of votes with a positive feedback rating91% of 740
Total "Very Satisfied" Votes627
Total "Somewhat Satisfied" Votes100
Total "Not Satisfied" Votes13
Ad
Contributors
  • AlejandorLazaro Avatar
  • jhoffner Avatar
  • bkaes Avatar
  • GiacomoSorbi Avatar
  • TheMightyPenguin Avatar
  • Voile Avatar
  • rowcased Avatar
  • FArekkusu Avatar
  • hobovsky Avatar
  • mauro-1 Avatar
  • avermakov Avatar
Ad