Cody

Solution 2128621

Submitted on 14 Feb 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 = 0; assert(isequal(frugal_no(n),y_correct))

Error in solution: Line: 2 Column: 69 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

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

Error in solution: Line: 2 Column: 69 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

3   Fail
n = 36; y_correct = 0; assert(isequal(frugal_no(n),y_correct))

Error in solution: Line: 2 Column: 69 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

4   Fail
n = 79; y_correct = 0; assert(isequal(frugal_no(n),y_correct))%% n = 105; y_correct = 0; assert(isequal(frugal_no(n),y_correct))

Error in solution: Line: 2 Column: 69 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

5   Fail
n = 106; y_correct = 0; assert(isequal(frugal_no(n),y_correct))

Error in solution: Line: 2 Column: 69 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

6   Fail
n = 125; y_correct = 1; assert(isequal(frugal_no(n),y_correct))

Error in solution: Line: 2 Column: 69 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

7   Fail
n = 128; y_correct = 1; assert(isequal(frugal_no(n),y_correct))

Error in solution: Line: 2 Column: 69 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

8   Fail
n = 243; y_correct = 1; assert(isequal(frugal_no(n),y_correct))

Error in solution: Line: 2 Column: 69 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

9   Fail
n = 344; y_correct = 0; assert(isequal(frugal_no(n),y_correct))

Error in solution: Line: 2 Column: 69 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

10   Fail
n = 11421; y_correct = 1; assert(isequal(frugal_no(n),y_correct))

Error in solution: Line: 2 Column: 69 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

11   Fail
n = 115248; y_correct = 1; assert(isequal(frugal_no(n),y_correct))

Error in solution: Line: 2 Column: 69 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

12   Fail
n = 111050; y_correct = 0; assert(isequal(frugal_no(n),y_correct))

Error in solution: Line: 2 Column: 69 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

13   Fail
n=97969; y_correct = 1; assert(isequal(frugal_no(n),y_correct))

Error in solution: Line: 2 Column: 69 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

Suggested Problems

More from this Author145