Generate the following vector: if n=1 then q=1; elseif n=2 then q=[2 2 1]; elseif n=3 then q=[3 3 3 2 2 1]; ... end
Did I do it right?
regexp hacks are not cool. Please disallow them in the Test Suite.
8419 Solvers
Sum all integers from 1 to 2^n
6335 Solvers
337 Solvers
Back to basics 13 - Input variables
203 Solvers
136 Solvers