Any idea what the time limit for the Cody solutions is? I've got code that runs the test suite in about 2.3 seconds on my (six-year old) machine, but it's timing out repeatedly on Cody.
Hi, James. The Cody time limit is reportedly around 30 seconds. [ https://www.mathworks.com/matlabcentral/cody/problems/44356 ] I just have confirmed a runtime of ~24 seconds (split across four tests) did not time out on Cody [Solution 1327589]. Although I would generally be aiming to get code complete within less than ~10 seconds in Cody. [Cf. Problem 44389.]
While evaluating the solution, the server encountered an error caused by long running MATLAB code. Edit the code if needed and then submit.
Sum all integers from 1 to 2^n
Project Euler: Problem 6, Natural numbers, squares and sums.
Matrix with different incremental runs
Doubling elements in a vector
replace nan values iteratively.
Repeat string n times
Mean = Standard Deviation
Produce the following matrix
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office