Surely I shouldn't done this ugly string thing, that is bad for everyone. Without any doubt, Tim's solution is the best one
Nice trick.
9885 Solvers
Sum of first n terms of a harmonic progression
258 Solvers
Permute diagonal and antidiagonal
224 Solvers
191 Solvers
273 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!