This is cheating.
it's not, this is a direct and clever solution to the specified problem which would not work for other arbitrary Cody problems, hence not cheating (in my book)
Find the sum of all the numbers of the input vector
31976 Solvers
337 Solvers
Duplicate each element of a vector.
518 Solvers
Given a 4x4 matrix, swap the two middle columns
516 Solvers
167 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!