Cody

Solution 471920

Submitted on 14 Jul 2014 by J.R.! Menzinger
  • Size: 7
  • This is the leading solution.
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   Pass
%% tic url = 'https://www.mathworks.com/matlabcentral/cody/?term=&sort=created+desc'; html = urlread(url); pattern = ['"problem_[0-9]+"']; c = regexp(html,pattern,'match'); q = c{1}; n = str2num(q(isstrprop(q,'digit'))); t_act = toc; tic n1 = numProb(); t_1 = toc; assert(isequal(n1,n) & (t_1<=(t_act*0.95)));