Create a series with following properties;
For example if input is 6, you can return the following series;
out = [12 44 2 24 2 6]
mean(out) = 15; std(out,1) = 15;
Another example; if input is 4, a possible solution;
out = [24 2 2 48]; mean(out) = 19; std(out,1) = 19;
zeros(x,1) is not an acceptable solution. A new assert line added and all solutions are rescored
I was wondering what the one line command was to do this when I saw the scores as low as they were!! Those were before the all(y>0) condition was added.
haha! I was discussed this one with binbin yesterday, he said this one was ill-conditioned, sooner or later will be fixed. We submit a solution anyway, sort of for fun. hope you don't mind it. But if really do that can be tricky indeed. good problem.
Project Euler: Problem 8, Find largest product in a large string of numbers
196 Solvers
214 Solvers
Compress strings (not springs)
85 Solvers
124 Solvers
Create Circular Perfect Square Sequence
9 Solvers