Cody

# Problem 1804. Fangs of a vampire number

Solution 1943940

Submitted on 20 Sep 2019 by Ed P.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
x = 1; y = 1; assert(~are_fangs(x,y))

2   Pass
x = 21; y = 60; assert(are_fangs(x,y))

temp = '1260' xy = '2160' contain_xy = 1×4 logical array 1 1 1 1

3   Pass
x = randi(9,1); y = randi([10 99],1); assert(~are_fangs(x,y))

4   Pass
x = 15; y = 93; assert(are_fangs(x,y))

temp = '1395' xy = '1593' contain_xy = 1×4 logical array 1 1 1 1

5   Pass
x = randi(9,1)*10; y = randi(9,1)*10; assert(~are_fangs(x,y))

6   Pass
x = 2; y = 50006; assert(~are_fangs(x,y))

7   Pass
x = 150; y=930; assert(~are_fangs(x,y))

8   Pass
x = 300; y = 501; assert(are_fangs(x,y))

temp = '150300' xy = '300501' contain_xy = 1×6 logical array 1 1 1 1 1 1

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!