Cody

# Problem 45250. Be happy

Solution 3118161

Submitted on 8 Oct 2020
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
n =11123; b=10; y_correct = 0; assert(isequal(be_happy(n,b),y_correct))

Output argument "tf" (and maybe others) not assigned during call to "be_happy". Error in Test1 (line 4) assert(isequal(be_happy(n,b),y_correct))

2   Fail
n = 347; b=6; y_correct = 1; assert(isequal(be_happy(n,b),y_correct))

Output argument "tf" (and maybe others) not assigned during call to "be_happy". Error in Test2 (line 4) assert(isequal(be_happy(n,b),y_correct))

3   Fail
n = 998; b=10; y_correct = 1; assert(isequal(be_happy(n,b),y_correct))

Output argument "tf" (and maybe others) not assigned during call to "be_happy". Error in Test3 (line 4) assert(isequal(be_happy(n,b),y_correct))

4   Fail
n = 1234; b=4; y_correct = 1; assert(isequal(be_happy(n,b),y_correct))

Output argument "tf" (and maybe others) not assigned during call to "be_happy". Error in Test4 (line 4) assert(isequal(be_happy(n,b),y_correct))

5   Fail
n = 149121303586; b=10; y_correct = 0; assert(isequal(be_happy(n,b),y_correct))

Output argument "tf" (and maybe others) not assigned during call to "be_happy". Error in Test5 (line 4) assert(isequal(be_happy(n,b),y_correct))

6   Fail
n =742356; b=3; y_correct = 0; assert(isequal(be_happy(n,b),y_correct))

Output argument "tf" (and maybe others) not assigned during call to "be_happy". Error in Test6 (line 4) assert(isequal(be_happy(n,b),y_correct))

7   Fail
n = 14916; b=7; y_correct = 0; assert(isequal(be_happy(n,b),y_correct))

Output argument "tf" (and maybe others) not assigned during call to "be_happy". Error in Test7 (line 4) assert(isequal(be_happy(n,b),y_correct))

8   Fail
n = 3148; b=6; y_correct = 0; assert(isequal(be_happy(n,b),y_correct))

Output argument "tf" (and maybe others) not assigned during call to "be_happy". Error in Test8 (line 4) assert(isequal(be_happy(n,b),y_correct))

9   Fail
n = 3148; b=7; y_correct = 0; assert(isequal(be_happy(n,b),y_correct))

Output argument "tf" (and maybe others) not assigned during call to "be_happy". Error in Test9 (line 4) assert(isequal(be_happy(n,b),y_correct))

10   Fail
n = 3148; b=13; y_correct = 1; assert(isequal(be_happy(n,b),y_correct))

Output argument "tf" (and maybe others) not assigned during call to "be_happy". Error in Test10 (line 4) assert(isequal(be_happy(n,b),y_correct))

### Community Treasure Hunt

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

Start Hunting!