Cody

Solution 875519

Submitted on 16 Apr 2016
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   Fail
Lee = [32 8 4 64 16 2]; baby= 2; dad = 64; family(1) = baby; family(2) = dad; assert(isequal(BabyDad(Lee),family));

tl = 32 32 32 64 32 32 tg = 32 8 4 32 16 2 family = 32 8 4 32 16 2 32 32 32 64 32 32

Assertion failed.

2   Fail
Jackson= [6, 10, 16, 28]; baby= 2; dad = 1680; family(1) = baby; family(2) = dad; assert(isequal(BabyDad(Jackson),family));

tl = 6 30 48 84 tg = 6 2 2 2 family = 6 2 2 2 6 30 48 84

Assertion failed.

3   Fail
Smith= [3 17 15 60 2 ]; baby= 1; dad = 1020; family(1) = baby; family(2) = dad; assert(isequal(BabyDad(Smith),family));

tl = 3 51 15 60 6 tg = 3 1 3 3 1 family = 3 1 3 3 1 3 51 15 60 6

Assertion failed.

4   Fail
Pitts= [10 6 12 20 ]; baby= 2; dad = 60; family(1) = baby; family(2) = dad; assert(isequal(BabyDad(Pitts),family));

tl = 10 30 60 20 tg = 10 2 2 10 family = 10 2 2 10 10 30 60 20

Assertion failed.