-
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
-
We love vectorized solutions. Problem 1 : remove the row average.
832 Solvers
-
Magic is simple (for beginners)
9735 Solvers
-
738 Solvers
-
689 Solvers
-
726 Solvers
More from this Author23
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!