Is there a bug in the Test Suite ? I made a code that resulted in the exact ideal answer but the Test has failed!?
I experienced the same thing...was able to generate the output exactly but received a failing score. Did you solve your issue?
Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
%%
list = {'Barney Google','Snuffy Smith','Dagwood Bumstead'};
alpha_list = {'Dagwood Bumstead','Barney Google','Snuffy Smith'}
assert(isequal(alphabetize(list),alpha_list))
Error: Not enough input arguments.
|
2 | Fail |
%%
list = {'Harry Truman'
'Dwight Eisenhower'
'John F. Kennedy'
'Lyndon Johnson'
'Richard Nixon'
'Gerald Ford'
'Cleve Moler'
'Ronald Reagan'
'George Bush'
'Bill Clinton'
'George Bush'
'Barack Obama'};
alpha_list = {'George Bush'
'George Bush'
'Bill Clinton'
'Dwight Eisenhower'
'Gerald Ford'
'Lyndon Johnson'
'John F. Kennedy'
'Cleve Moler'
'Richard Nixon'
'Barack Obama'
'Ronald Reagan'
'Harry Truman'}
assert(isequal(alphabetize(list),alpha_list))
Error: Not enough input arguments.
|
Increment a number, given its digits
506 Solvers
263 Solvers
Create a square matrix of multiples
330 Solvers
Sum the elements in either diagonal of a square matrix
145 Solvers
250 Solvers