Cody

Problem 507. Back to basics 26 - Keywords

Solution 2799694

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
y_correct = {'break';'case';'catch';'classdef';'continue';'else';'elseif'; 'end';'for'; 'function'; 'global'; 'if'; 'otherwise'; 'parfor'; 'persistent'; 'return'; 'spmd'; 'switch'; 'try'; 'while'}; assert(isequal(keywords,y_correct))

Out of memory. The likely cause is an infinite recursion within the program. Error in keywords (line 2) y = keywords;