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
Similar Kata:
Stats:
Created | Feb 6, 2015 |
Published | Feb 6, 2015 |
Warriors Trained | 15028 |
Total Skips | 2525 |
Total Code Submissions | 26594 |
Total Times Completed | 7075 |
Python Completions | 2780 |
JavaScript Completions | 2719 |
Haskell Completions | 393 |
Ruby Completions | 1122 |
C# Completions | 549 |
Total Stars | 175 |
% of votes with a positive feedback rating | 91% of 740 |
Total "Very Satisfied" Votes | 627 |
Total "Somewhat Satisfied" Votes | 100 |
Total "Not Satisfied" Votes | 13 |