Cody

# Problem 2051. is the number happy?

Solution 2799511

Submitted on 6 Aug 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 = 1; y_correct = 1; assert(isequal(ishappy(n),y_correct))

Error in solution: Line: 4 Column: 5 Invalid text character. Check for unsupported symbol, invisible character, or pasting of non-ASCII characters.

2   Fail
n = 2; y_correct = 0; assert(isequal(ishappy(n),y_correct))

Error in solution: Line: 4 Column: 5 Invalid text character. Check for unsupported symbol, invisible character, or pasting of non-ASCII characters.

3   Fail
n = 31; y_correct = 1; assert(isequal(ishappy(n),y_correct))

Error in solution: Line: 4 Column: 5 Invalid text character. Check for unsupported symbol, invisible character, or pasting of non-ASCII characters.

4   Fail
n = 13; y_correct = 1; assert(isequal(ishappy(n),y_correct))

Error in solution: Line: 4 Column: 5 Invalid text character. Check for unsupported symbol, invisible character, or pasting of non-ASCII characters.

5   Fail
n = 11; y_correct = 0; assert(isequal(ishappy(n),y_correct))

Error in solution: Line: 4 Column: 5 Invalid text character. Check for unsupported symbol, invisible character, or pasting of non-ASCII characters.

6   Fail
n = 101; y_correct = 0; assert(isequal(ishappy(n),y_correct))

Error in solution: Line: 4 Column: 5 Invalid text character. Check for unsupported symbol, invisible character, or pasting of non-ASCII characters.

7   Fail
n = 100; y_correct = 1; assert(isequal(ishappy(n),y_correct))

Error in solution: Line: 4 Column: 5 Invalid text character. Check for unsupported symbol, invisible character, or pasting of non-ASCII characters.

8   Fail
n = 130; y_correct = 1; assert(isequal(ishappy(n),y_correct))

Error in solution: Line: 4 Column: 5 Invalid text character. Check for unsupported symbol, invisible character, or pasting of non-ASCII characters.

9   Fail
n = 230; y_correct = 1; assert(isequal(ishappy(n),y_correct))

Error in solution: Line: 4 Column: 5 Invalid text character. Check for unsupported symbol, invisible character, or pasting of non-ASCII characters.

10   Fail
n = 190; y_correct = 1; assert(isequal(ishappy(n),y_correct))

Error in solution: Line: 4 Column: 5 Invalid text character. Check for unsupported symbol, invisible character, or pasting of non-ASCII characters.

11   Fail
n = 290; y_correct = 0; assert(isequal(ishappy(n),y_correct))

Error in solution: Line: 4 Column: 5 Invalid text character. Check for unsupported symbol, invisible character, or pasting of non-ASCII characters.

12   Fail
n = 998; y_correct = 1; assert(isequal(ishappy(n),y_correct))

Error in solution: Line: 4 Column: 5 Invalid text character. Check for unsupported symbol, invisible character, or pasting of non-ASCII characters.