-
4 Comments
There is a nifty trick for reducing what seems like the shortest possible solution. I don't really want to just state the trick, as it is fun to learn or discover on your own.
If you can't figure it out, I suggest that you submit a simple problem to Cody, and look at the solutions. (They will all be viewable to you, as the problem submitter.) Someone will use the trick, almost certainly.
So does this trick work in the actual application as well, or is it related to how Cody calculates the code size?
I mean will this "trick" actually improve the performance in Matlab env?
No, the trick is actually fairly poor coding practice
Suggested Problems
-
576 Solvers
-
We love vectorized solutions. Problem 1 : remove the row average.
836 Solvers
-
Create a Multiplication table matrix...
584 Solvers
-
Natural numbers in string form
1646 Solvers
-
Deleting an element in a matrix
472 Solvers
More from this Author23
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!